prevent linux from assigning ipv6 link-local addresses (#1476)

This commit is contained in:
Jack Doan
2025-09-09 13:25:23 -05:00
committed by GitHub
parent 73cfa7b5b1
commit 65cc253c19

View File

@@ -360,6 +360,11 @@ func (t *tun) Activate() error {
t.l.WithError(err).Error("Failed to set tun tx queue length") t.l.WithError(err).Error("Failed to set tun tx queue length")
} }
const modeNone = 1
if err = netlink.LinkSetIP6AddrGenMode(link, modeNone); err != nil {
t.l.WithError(err).Warn("Failed to disable link local address generation")
}
if err = t.addIPs(link); err != nil { if err = t.addIPs(link); err != nil {
return err return err
} }