1
0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-02-28 11:40:42 +00:00

15 lines
305 B
Go
Raw Normal View History

2020-11-25 19:01:53 +08:00
package dokodemo
import (
2020-12-04 09:36:16 +08:00
"github.com/xtls/xray-core/common/net"
2020-11-25 19:01:53 +08: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
}