From e5f645d771a8a8dd9f5769340af6ba37ac090abb Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sun, 25 Feb 2018 03:41:39 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/mac_changer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mac_changer.go b/modules/mac_changer.go index c3ccd019..bf2232fb 100644 --- a/modules/mac_changer.go +++ b/modules/mac_changer.go @@ -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)