started structuring project for testing + lint driven various refactoring

This commit is contained in:
evilsocket 2018-04-24 15:12:25 +02:00
commit bc3be7dd2b
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
5 changed files with 17 additions and 18 deletions

View file

@ -81,9 +81,9 @@ func (mc *MacChanger) Configure() (err error) {
}
func (mc *MacChanger) setMac(mac net.HardwareAddr) error {
os := runtime.GOOS
args := []string{}
var args []string
os := runtime.GOOS
if strings.Contains(os, "bsd") || os == "darwin" {
args = []string{mc.iface, "ether", mac.String()}
} else if os == "linux" || os == "android" {