mirror of
https://github.com/luscis/openlan.git
synced 2025-10-21 16:10:05 +08:00
fea: ceci name proxy support.
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
|
Reference in New Issue
Block a user