Skip to content

Commit

Permalink
Use publicIP lookup iface if --public-ip indicated
Browse files Browse the repository at this point in the history
Signed-off-by: smarkm <smark@freecoop.net>
  • Loading branch information
smarkm committed Oct 29, 2019
1 parent 07bc9e1 commit 477d9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 477d9fa

Please sign in to comment.