fea: ceci name proxy support.

This commit is contained in:
Daniel Ding
2025-04-17 11:53:22 +08:00
parent 522733592b
commit 32bd526dec
15 changed files with 276 additions and 90 deletions

View File

@@ -25,6 +25,9 @@ func NewTcpProxy(cfg *config.TcpProxy) *TcpProxy {
}
}
func (t *TcpProxy) Initialize() {
}
func (t *TcpProxy) tunnel(src net.Conn, dst net.Conn) {
defer dst.Close()
defer src.Close()
@@ -106,8 +109,11 @@ func (t *TcpProxy) Start() {
func (t *TcpProxy) Stop() {
if t.listener != nil {
_ = t.listener.Close()
t.listener.Close()
t.listener = nil
}
t.out.Info("TcpProxy.Stop")
t.listener = nil
}
func (t *TcpProxy) Save() {
}