1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-19 15:10:35 -05:00
v2fly/proxy/dokodemo/config.go

15 lines
310 B
Go
Raw Normal View History

2015-12-06 18:21:15 +01:00
package dokodemo
import (
2021-02-17 04:31:50 +08:00
"github.com/v2fly/v2ray-core/v4/common/net"
2015-12-06 18:21:15 +01:00
)
2016-12-22 13:33:28 +01:00
// GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
2017-01-14 00:27:45 +01:00
func (v *Config) GetPredefinedAddress() net.Address {
2016-11-27 21:39:09 +01:00
addr := v.Address.AsAddress()
2016-09-24 23:36:26 +02:00
if addr == nil {
return nil
}
return addr
2015-12-06 18:21:15 +01:00
}