mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: wifi.min.rssi, wifi.ap.ttl and wifi.sta.ttl changes are now applied in realtime
This commit is contained in:
parent
53b0d81f20
commit
12a11ef19d
5 changed files with 47 additions and 9 deletions
|
@ -233,6 +233,12 @@ func (m *SessionModule) AddParam(p *ModuleParam) *ModuleParam {
|
|||
return p
|
||||
}
|
||||
|
||||
func (m *SessionModule) AddObservableParam(p *ModuleParam, cb EnvironmentChangedCallback) *ModuleParam {
|
||||
m.params[p.Name] = p
|
||||
p.RegisterObserver(m.Session, cb)
|
||||
return p
|
||||
}
|
||||
|
||||
func (m *SessionModule) Running() bool {
|
||||
m.StatusLock.RLock()
|
||||
defer m.StatusLock.RUnlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue