Ver Fonte

Use publicIP lookup iface if --public-ip indicated

Signed-off-by: smarkm <smark@freecoop.net>
smarkm há 5 anos atrás
pai
commit
477d9fa153
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      main.go

+ 1 - 1
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)