socks client config

This commit is contained in:
v2ray committed 2016-07-25 23:45:25 +02:00
1 parent a509252c24
commit 6a620d1c6d
6 files changed
+75 -6

No files matched your search

-21
View File
@@ -1,21 +0,0 @@
// +build json
package socks_test
import (
"testing"
"github.com/v2ray/v2ray-core/proxy/internal"
"github.com/v2ray/v2ray-core/proxy/socks"
"github.com/v2ray/v2ray-core/testing/assert"
)
func TestDefaultIPAddress(t *testing.T) {
assert := assert.On(t)
socksConfig, err := internal.CreateInboundConfig("socks", []byte(`{
"auth": "noauth"
}`))
assert.Error(err).IsNil()
assert.Address(socksConfig.(*socks.Config).Address).EqualsString("127.0.0.1")
}