1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00
v2fly/proxy/dokodemo/config.go
2016-12-22 13:33:28 +01:00

15 lines
302 B
Go

package dokodemo
import (
v2net "v2ray.com/core/common/net"
)
// GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
func (v *Config) GetPredefinedAddress() v2net.Address {
addr := v.Address.AsAddress()
if addr == nil {
return nil
}
return addr
}