瀏覽代碼

fix test break

Darien Raymond 9 年之前
父節點
當前提交
3423adaea4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      proxy/socks/server_config_json_test.go

+ 1 - 1
proxy/socks/server_config_json_test.go

@@ -17,5 +17,5 @@ func TestDefaultIPAddress(t *testing.T) {
     "auth": "noauth"
   }`))
 	assert.Error(err).IsNil()
-	assert.Address(socksConfig.(*ServerConfig).Address.AsAddress()).EqualsString("127.0.0.1")
+	assert.Address(socksConfig.(*ServerConfig).GetNetAddress()).EqualsString("127.0.0.1")
 }