|
|
@ -6,7 +6,7 @@ import (
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
|
"v2ray.com/core/proxy/registry"
|
|
|
|
"v2ray.com/core/proxy/registry"
|
|
|
|
"v2ray.com/core/proxy/socks"
|
|
|
|
. "v2ray.com/core/proxy/socks"
|
|
|
|
"v2ray.com/core/testing/assert"
|
|
|
|
"v2ray.com/core/testing/assert"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -17,5 +17,5 @@ func TestDefaultIPAddress(t *testing.T) {
|
|
|
|
"auth": "noauth"
|
|
|
|
"auth": "noauth"
|
|
|
|
}`))
|
|
|
|
}`))
|
|
|
|
assert.Error(err).IsNil()
|
|
|
|
assert.Error(err).IsNil()
|
|
|
|
assert.Address(socksConfig.(*socks.Config).Address).EqualsString("127.0.0.1")
|
|
|
|
assert.Address(socksConfig.(*ServerConfig).Address.AsAddress()).EqualsString("127.0.0.1")
|
|
|
|
}
|
|
|
|
}
|
|
|
|