mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 04:55:37 -05:00
check nil
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user