Xray-core/proxy/dokodemo/config.go

15 lines
305 B
Go
Raw Permalink Normal View History

2020-11-25 11:01:53 +00:00
package dokodemo
import (
2020-12-04 01:36:16 +00:00
"github.com/xtls/xray-core/common/net"
2020-11-25 11:01:53 +00:00
)
// GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
func (v *Config) GetPredefinedAddress() net.Address {
addr := v.Address.AsAddress()
if addr == nil {
return nil
}
return addr
}