1
0
Fork 0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-01-09 20:23:33 +02:00
Xray-core/proxy/dokodemo/config.go
2020-12-04 09:36:16 +08:00

14 lines
305 B
Go

package dokodemo
import (
"github.com/xtls/xray-core/common/net"
)
// 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
}