Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
boy-hack committed Sep 9, 2020
1 parent 4f67f5f commit 6d156cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func AutoGetDevices() EthTable {
}
}
END:
gologger.Infof("\nUse Device: %s\n", c.Device)
gologger.Printf("\n")
gologger.Infof("Use Device: %s\n", c.Device)
gologger.Infof("Use IP:%s\n", c.SrcIp.String())
gologger.Infof("Local Mac:%s\n", c.SrcMac.String())
gologger.Infof("GateWay Mac:%s\n", c.DstMac.String())
Expand Down
2 changes: 1 addition & 1 deletion core/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Start(options *Options) {
version := pcap.Version()
gologger.Infof(version + "\n")
var ether EthTable
if options.NetworkId >= 0 {
if options.NetworkId == -1 {
ether = AutoGetDevices()
} else {
ether = GetDevices(options)
Expand Down

0 comments on commit 6d156cc

Please sign in to comment.