update tun/tap

This commit is contained in:
ginuerzh
2022-08-18 14:50:13 +08:00
parent c720ab351e
commit 4c1da3e4d4
6 changed files with 55 additions and 66 deletions

View File

@ -241,7 +241,7 @@ func (h *tunHandler) transport(tun net.Conn, conn net.PacketConn, raddr net.Addr
addr := h.findRouteFor(dst, config.Routes...)
if addr == nil {
log.Warnf("no route for %s -> %s", src, dst)
log.Debugf("no route for %s -> %s", src, dst)
return nil
}
@ -317,7 +317,7 @@ func (h *tunHandler) transport(tun net.Conn, conn net.PacketConn, raddr net.Addr
h.routes.Store(rkey, addr)
}
} else {
log.Warnf("no route for %s -> %s", src, addr)
log.Debugf("no route for %s -> %s", src, addr)
}
if addr := h.findRouteFor(dst, config.Routes...); addr != nil {