1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-26 20:15:26 -05:00

fix lint warnings

This commit is contained in:
Darien Raymond
2016-12-22 13:33:28 +01:00
parent 4cbcd2fd8d
commit a24b11af27
7 changed files with 24 additions and 17 deletions

View File

@@ -4,6 +4,7 @@ import (
v2net "v2ray.com/core/common/net"
)
// GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
func (v *Config) GetPredefinedAddress() v2net.Address {
addr := v.Address.AsAddress()
if addr == nil {