diff --git a/redirect_nftables.go b/redirect_nftables.go index be86114..02a9ca8 100644 --- a/redirect_nftables.go +++ b/redirect_nftables.go @@ -32,6 +32,10 @@ func (r *autoRedirect) setupNFTables() error { return err } + err = r.interfaceFinder.Update() + if err != nil { + return err + } r.localAddresses = common.FlatMap(r.interfaceFinder.Interfaces(), func(it control.Interface) []netip.Prefix { return common.Filter(it.Addresses, func(prefix netip.Prefix) bool { return it.Name == "lo" || prefix.Addr().IsGlobalUnicast()