mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
started structuring project for testing + lint driven various refactoring
This commit is contained in:
parent
64099bc1fb
commit
bc3be7dd2b
5 changed files with 17 additions and 18 deletions
|
@ -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" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue