refactor(network): consolidate network change monitoring

Remove separate watchLinkState function and integrate link state change
handling directly into monitorNetworkChanges. This consolidates network
monitoring logic into a single place and simplifies the codebase.

Update netlink dependency from v1.2.1-beta.2 to v1.3.1 and netns from
v0.0.4 to v0.0.5 to use stable versions.
This commit is contained in:
Cuong Manh Le
2026-01-20 17:26:37 +07:00
committed by Cuong Manh Le
parent 256ed7b938
commit bdb8bedba1
6 changed files with 13 additions and 53 deletions

View File

@@ -515,7 +515,6 @@ func (p *prog) run(reload bool, reloadCh chan struct{}) {
defer wg.Done()
p.runClientInfoDiscover(ctx)
}()
go p.watchLinkState(ctx)
}
if !reload {