mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 21:12:05 -07:00
fix: if interface name has not been provided, avoid default to a tun interface
This commit is contained in:
parent
7beb27cfca
commit
9abf7c809a
2 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,7 @@ func TestNewLAN(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Error("no iface found", err)
|
||||
}
|
||||
|
||||
gateway, err := FindGateway(iface)
|
||||
if err != nil {
|
||||
t.Error("no gateway found", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue