mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -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" {
|
if strings.Contains(os, "bsd") || os == "darwin" {
|
||||||
args = []string{mc.iface, "ether", mac.String()}
|
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()}
|
args = []string{mc.iface, "hw", "ether", mac.String()}
|
||||||
} else {
|
} else {
|
||||||
return fmt.Errorf("OS %s is not supported by mac.changer module.", os)
|
return fmt.Errorf("OS %s is not supported by mac.changer module.", os)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue