mirror of
https://github.com/ginuerzh/gost.git
synced 2024-04-21 12:31:34 +00:00
use ip address instead of domain address in Connector.Connect
This commit is contained in:
@@ -143,7 +143,7 @@ func (c *Chain) dialWithOptions(addr string, options *ChainOptions) (net.Conn, e
|
||||
return nil, err
|
||||
}
|
||||
|
||||
cc, err := route.LastNode().Client.Connect(conn, addr, IPAddrConnectOption(ipAddr))
|
||||
cc, err := route.LastNode().Client.Connect(conn, ipAddr, AddrConnectOption(addr))
|
||||
if err != nil {
|
||||
conn.Close()
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user