mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: initialize wifi module state correctly
This commit is contained in:
parent
9f61ec7f13
commit
ac2d333609
1 changed files with 1 additions and 0 deletions
|
@ -104,6 +104,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
mod.InitState("channels")
|
mod.InitState("channels")
|
||||||
|
mod.State.Store("channels", []int{})
|
||||||
|
|
||||||
mod.AddParam(session.NewStringParameter("wifi.interface",
|
mod.AddParam(session.NewStringParameter("wifi.interface",
|
||||||
"",
|
"",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue