mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
Fix relay IPv4 address resolution behind DNS64
This commit is contained in:
parent
9de06a6bf9
commit
38ed8ecc3c
2 changed files with 6 additions and 5 deletions
|
@ -778,7 +778,7 @@ func (c *Client) Receive() (err error) {
|
|||
continue
|
||||
}
|
||||
|
||||
serverTry := fmt.Sprintf("%s:%s", ip, port)
|
||||
serverTry := net.JoinHostPort(ip, port)
|
||||
conn, banner2, externalIP, errConn := tcp.ConnectToTCPServer(serverTry, c.Options.RelayPassword, c.Options.SharedSecret[:3], 500*time.Millisecond)
|
||||
if errConn != nil {
|
||||
log.Debug(errConn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue