diff --git a/main.go b/main.go index 1293415cd9..363457c59f 100644 --- a/main.go +++ b/main.go @@ -199,7 +199,7 @@ func main() { var err error // Check the default interface only if no interfaces are specified if len(opts.iface) == 0 && len(opts.ifaceRegex) == 0 { - extIface, err = LookupExtIface("", "") + extIface, err = LookupExtIface(opts.publicIP, "") if err != nil { log.Error("Failed to find any valid interface to use: ", err) os.Exit(1)