1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-29 23:36:25 -04:00
v2fly/proxy/dokodemo/config.go

15 lines
302 B
Go
Raw Normal View History

2015-12-06 12:21:15 -05:00
package dokodemo
import (
2016-08-20 14:55:45 -04:00
v2net "v2ray.com/core/common/net"
2015-12-06 12:21:15 -05:00
)
2016-12-22 07:33:28 -05:00
// GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
2016-11-27 15:39:09 -05:00
func (v *Config) GetPredefinedAddress() v2net.Address {
addr := v.Address.AsAddress()
2016-09-24 17:36:26 -04:00
if addr == nil {
return nil
}
return addr
2015-12-06 12:21:15 -05:00
}