mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
check nil
This commit is contained in:
parent
24e575f2cd
commit
5e9017720e
@ -5,5 +5,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (this *Config) GetPredefinedAddress() v2net.Address {
|
func (this *Config) GetPredefinedAddress() v2net.Address {
|
||||||
return this.Address.AsAddress()
|
addr := this.Address.AsAddress()
|
||||||
|
if addr == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return addr
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user