misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2024-09-19 21:49:02 +02:00
parent 91d360327a
commit 51a5b4ad6e
17 changed files with 1375 additions and 239 deletions

View file

@ -118,7 +118,7 @@ func (mod *Prober) Start() error {
}
if mod.probes.MDNS {
mod.Session.Run("mdns.discovery on")
mod.Session.Run("zerogod.discovery on")
}
fromIP := mod.Session.Interface.IP
@ -158,7 +158,7 @@ func (mod *Prober) Start() error {
func (mod *Prober) Stop() error {
return mod.SetRunning(false, func() {
if mod.probes.MDNS {
mod.Session.Run("mdns.discovery off")
mod.Session.Run("zerogod.discovery off")
}
mod.waitGroup.Wait()