add client addr for auth plugin

This commit is contained in:
ginuerzh committed 2023-09-21 19:59:56 +08:00
1 parent 1760151500
commit ddc3c9392e
11 files changed
+51 -13

No files matched your search

+2
View File
@@ -90,6 +90,8 @@ func (h *forwardHandler) Handle(ctx context.Context, conn net.Conn, opts ...hand
network = "udp"
}
ctx = auth_util.ContextWithClientAddr(ctx, auth_util.ClientAddr(conn.RemoteAddr().String()))
var rw io.ReadWriter = conn
var host string
var protocol string