add sid for connector log

This commit is contained in:
ginuerzh
2024-09-20 18:20:57 +08:00
parent e37213ac01
commit e09ec08881
22 changed files with 142 additions and 46 deletions
+2 -1
View File
@@ -36,7 +36,7 @@ import (
)
const (
defaultBodySize = 1024 * 1024 * 10 // 10MB
defaultBodySize = 1024 * 1024 // 1MB
)
func init() {
@@ -126,6 +126,7 @@ func (h *forwardHandler) Handle(ctx context.Context, conn net.Conn, opts ...hand
if _, ok := conn.(net.PacketConn); ok {
network = "udp"
}
ro.Network = network
var rw io.ReadWriter = conn
var host string
+2 -1
View File
@@ -38,7 +38,7 @@ import (
)
const (
defaultBodySize = 1024 * 1024 * 10 // 10MB
defaultBodySize = 1024 * 1024 // 1MB
)
func init() {
@@ -127,6 +127,7 @@ func (h *forwardHandler) Handle(ctx context.Context, conn net.Conn, opts ...hand
if _, ok := conn.(net.PacketConn); ok {
network = "udp"
}
ro.Network = network
localAddr := convertAddr(conn.LocalAddr())
+1 -1
View File
@@ -40,7 +40,7 @@ import (
)
const (
defaultBodySize = 1024 * 1024 * 10 // 10MB
defaultBodySize = 1024 * 1024 // 1MB
)
func init() {
+1 -1
View File
@@ -31,7 +31,7 @@ import (
)
const (
defaultBodySize = 1024 * 1024 * 10 // 10MB
defaultBodySize = 1024 * 1024 // 1MB
)
type entrypoint struct {