Add TODO implement sync routes for windows

This commit is contained in:
lucheng
2024-07-04 11:24:09 +08:00
parent ff6611fc2c
commit 5178b4ae6c

View File

@@ -79,6 +79,7 @@ func MonitorRouteMulticast(iface *net.Interface, tapIP string) {
routes := utils.ParseRoutesStream(buf[2:])
log.Debugf("receive route multicast:\n%+v", routes)
// TODO: Implement in windows
// Sync routes, use flag replace, for unknow ip need delete
if err := utils.SyncRoutesForIface(iface.Name, tapIP, routes); err != nil {
log.Errorf("sync route for %s %s", iface.Name, err.Error())