Fix network monitor

This commit is contained in:
世界
2023-07-23 14:42:19 +08:00
parent 2675aff98a
commit 90b3aad83a
21 changed files with 79 additions and 80 deletions

View File

@@ -162,8 +162,11 @@ func (t *Transport) updateServers() error {
}
}
func (t *Transport) interfaceUpdated(int) error {
return t.updateServers()
func (t *Transport) interfaceUpdated(int) {
err := t.updateServers()
if err != nil {
t.logger.Error("update servers: ", err)
}
}
func (t *Transport) fetchServers0(ctx context.Context, iface *net.Interface) error {