1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 14:56:33 -04:00

check nil

This commit is contained in:
Darien Raymond 2016-09-24 23:36:26 +02:00
parent 24e575f2cd
commit 5e9017720e
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -5,5 +5,9 @@ import (
)
func (this *Config) GetPredefinedAddress() v2net.Address {
return this.Address.AsAddress()
addr := this.Address.AsAddress()
if addr == nil {
return nil
}
return addr
}