Files
Xray-core/proxy/dokodemo/config.go
T

15 lines
312 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.RewriteAddress.AsAddress()
2020-11-25 19:01:53 +08:00
if addr == nil {
return nil
}
return addr
}