We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11869b0 commit be6a0d7Copy full SHA for be6a0d7
libtailscale/net.go
@@ -101,9 +101,12 @@ func (a *App) getInterfaces() ([]netmon.Interface, error) {
101
102
addrs := strings.Trim(fields[1], " \n")
103
for _, addr := range strings.Split(addrs, " ") {
104
- _, ipnet, err := net.ParseCIDR(addr)
+ pfx, err := netip.ParsePrefix(addr)
105
if err == nil {
106
- newIf.AltAddrs = append(newIf.AltAddrs, ipnet)
+ newIf.AltAddrs = append(newIf.AltAddrs, &net.IPAddr{
107
+ IP: net.IP(pfx.Addr().AsSlice()),
108
+ Zone: pfx.Addr().Zone(),
109
+ })
110
}
111
112
0 commit comments