mirror of
https://github.com/daeuniverse/dae.git
synced 2025-08-01 07:39:52 +07:00
fix: patch old wan method
This commit is contained in:
@ -110,6 +110,13 @@ func bindAddr(fd uintptr, addrPort netip.AddrPort) error {
|
||||
a6 := &syscall.SockaddrInet6{
|
||||
Port: int(addrPort.Port()),
|
||||
}
|
||||
zone := addrPort.Addr().Zone()
|
||||
if zone != "" {
|
||||
//if link, e := netlink.LinkByName(zone); e == nil {
|
||||
// a6.ZoneId = uint32(link.Attrs().Index)
|
||||
//}
|
||||
return fmt.Errorf("unsupported ipv6 zone")
|
||||
}
|
||||
a6.Addr = addr.As16()
|
||||
sockAddr = a6
|
||||
default:
|
||||
|
Reference in New Issue
Block a user