Fix network monitor

This commit is contained in:
世界 committed 2023-08-20 13:30:50 +08:00
1 parent 2675aff98a
commit 90b3aad83a
21 files changed
+79 -80

No files matched your search

+5 -2
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 {