소스 검색

Use publicIP lookup iface if --public-ip indicated

Signed-off-by: smarkm <smark@freecoop.net>
smarkm 5 년 전
부모
커밋
477d9fa153
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)