Skip to content

Commit

Permalink
Print ifconfig error. See #83
Browse files Browse the repository at this point in the history
  • Loading branch information
cjimti committed Nov 7, 2019
1 parent db1f258 commit df22a90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fwdnet/fwdnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func ReadyInterface(a byte, b byte, c byte, d int, port string) (net.IP, int, er
args := []string{"lo0", "alias", ip.String(), "up"}
if err := exec.Command(cmd, args...).Run(); err != nil {
fmt.Println("Cannot ifconfig lo0 alias " + ip.String() + " up")
fmt.Println("Error: " + err.Error())
os.Exit(1)
}

Expand Down

0 comments on commit df22a90

Please sign in to comment.