mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
b708bbeb79
commit
e5f645d771
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ func (mc *MacChanger) setMac(mac net.HardwareAddr) error {
|
|||
|
||||
if strings.Contains(os, "bsd") || os == "darwin" {
|
||||
args = []string{mc.iface, "ether", mac.String()}
|
||||
} else if os == "linux" {
|
||||
} else if os == "linux" || os == "android" {
|
||||
args = []string{mc.iface, "hw", "ether", mac.String()}
|
||||
} else {
|
||||
return fmt.Errorf("OS %s is not supported by mac.changer module.", os)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue