mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 11:22:49 +03:00
Merge: * install: IPv6 addresses were removed from the list of available addresses
Close #1481 * commit 'dfa278b845dbf890fec800e15495b364f6f4fd2e': * install: IPv6 addresses were removed from the list of available addresses
This commit is contained in:
commit
a93652b1c0
@ -88,10 +88,6 @@ func GetValidNetInterfacesForWeb() ([]NetInterface, error) {
|
||||
if ipNet.IP.IsLinkLocalUnicast() {
|
||||
continue
|
||||
}
|
||||
// ignore IPv6
|
||||
if ipNet.IP.To4() == nil {
|
||||
continue
|
||||
}
|
||||
netIface.Addresses = append(netIface.Addresses, ipNet.IP.String())
|
||||
netIface.Subnets = append(netIface.Subnets, ipNet.String())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user