mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-13 00:02:50 +00:00
toggling an identity that has an ip intercept causes panic
This commit is contained in:
@@ -229,8 +229,12 @@ func (dns *dnsImpl) ReturnToDns(hostname string) net.IP {
|
||||
dnsEntry := dns.hostnameMap[normalizeDnsName(hostname)]
|
||||
if dnsEntry != nil {
|
||||
dnsEntry.dnsEnabled = true
|
||||
return dnsEntry.ip
|
||||
} else {
|
||||
// probably is an ip - pasee as ip and try to return that
|
||||
ip := net.ParseIP(hostname)
|
||||
return ip
|
||||
}
|
||||
return dnsEntry.ip
|
||||
}
|
||||
|
||||
func DnsInit(tun api.DesktopEdgeIface, ip string, maskBits int) {
|
||||
|
||||
Reference in New Issue
Block a user