IPv6 support for outside (udp) (#369)
This commit is contained in:
4
ssh.go
4
ssh.go
@ -562,7 +562,7 @@ func sshCreateTunnel(ifce *Interface, fs interface{}, a []string, w sshd.StringW
|
||||
|
||||
hostInfo = ifce.handshakeManager.AddVpnIP(vpnIp)
|
||||
if addr != nil {
|
||||
hostInfo.SetRemote(*addr)
|
||||
hostInfo.SetRemote(addr)
|
||||
}
|
||||
ifce.getOrHandshake(vpnIp)
|
||||
|
||||
@ -604,7 +604,7 @@ func sshChangeRemote(ifce *Interface, fs interface{}, a []string, w sshd.StringW
|
||||
return w.WriteLine(fmt.Sprintf("Could not find tunnel for vpn ip: %v", a[0]))
|
||||
}
|
||||
|
||||
hostInfo.SetRemote(*addr)
|
||||
hostInfo.SetRemote(addr)
|
||||
return w.WriteLine("Changed")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user