修复屏蔽协议引发的udp不通问题

This commit is contained in:
qaq
2025-10-30 16:15:04 +08:00
parent 5387b09dfe
commit b587193e74
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ func (h *forwardHandler) Handle(ctx context.Context, conn net.Conn, opts ...hand
log.Infof("%s <> %s", conn.RemoteAddr(), conn.LocalAddr())
network := "tcp"
if _, ok := conn.(net.PacketConn); ok {
if conn.RemoteAddr().Network() == "udp" {
network = "udp"
}
ro.Network = network