mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 07:26:24 -05:00
Fix test break on socks TestSocksConformance, use ip instead of hostname
This commit is contained in:
parent
62813a9ede
commit
218d6204b8
@ -271,7 +271,7 @@ func TestSocksBridageUDPWithRouting(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSocksConformance(t *testing.T) {
|
func TestSocksConformanceMod(t *testing.T) {
|
||||||
tcpServer := tcp.Server{
|
tcpServer := tcp.Server{
|
||||||
MsgProcessor: xor,
|
MsgProcessor: xor,
|
||||||
}
|
}
|
||||||
@ -360,7 +360,7 @@ func TestSocksConformance(t *testing.T) {
|
|||||||
|
|
||||||
{
|
{
|
||||||
dialer := socks4.Dial("socks4://" + net.TCPDestination(net.LocalHostIP, noAuthPort).NetAddr())
|
dialer := socks4.Dial("socks4://" + net.TCPDestination(net.LocalHostIP, noAuthPort).NetAddr())
|
||||||
conn, err := dialer("tcp", net.TCPDestination(net.LocalHostDomain, tcpServer.Port).NetAddr())
|
conn, err := dialer("tcp", net.TCPDestination(net.LocalHostIP, tcpServer.Port).NetAddr())
|
||||||
common.Must(err)
|
common.Must(err)
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user