重新规划网关与节点的交互协议,实现统一命令位的识别和处理
This commit is contained in:
@@ -6,12 +6,13 @@ import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/google/uuid"
|
||||
"io"
|
||||
"log/slog"
|
||||
"net"
|
||||
"proxy-server/pkg/utils"
|
||||
"proxy-server/server/core"
|
||||
"proxy-server/server/fwd/auth"
|
||||
"proxy-server/server/fwd/core"
|
||||
"slices"
|
||||
)
|
||||
|
||||
@@ -83,7 +84,7 @@ func Process(ctx context.Context, conn net.Conn) (*core.Conn, error) {
|
||||
Conn: conn,
|
||||
Reader: reader,
|
||||
Protocol: "socks5",
|
||||
Tag: conn.RemoteAddr().String() + "_" + conn.LocalAddr().String(),
|
||||
Tag: uuid.New(),
|
||||
Dest: request.DestAddr,
|
||||
Auth: authCtx,
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user