1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 02:35:23 +00:00
v2fly/proxy/dokodemo/config.go
Darien Raymond 5e9017720e
check nil
2016-09-24 23:36:26 +02:00

14 lines
207 B
Go

package dokodemo
import (
v2net "v2ray.com/core/common/net"
)
func (this *Config) GetPredefinedAddress() v2net.Address {
addr := this.Address.AsAddress()
if addr == nil {
return nil
}
return addr
}