add router handler & connector

This commit is contained in:
ginuerzh
2025-02-07 15:44:31 +08:00
parent 379d9a73ad
commit 355c72477a
25 changed files with 1265 additions and 110 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ type conn struct {
}
func WrapConn(c net.Conn, pStats stats.Stats) net.Conn {
if pStats == nil {
if c == nil || pStats == nil {
return c
}
+1 -1
View File
@@ -13,7 +13,7 @@ type readWriter struct {
}
func WrapReadWriter(rw io.ReadWriter, stats stats.Stats) io.ReadWriter {
if stats == nil {
if rw == nil || stats == nil {
return rw
}