From 1eedba549f5a18fdf1fd3426a410fe757c28e719 Mon Sep 17 00:00:00 2001 From: Guy Lewin Date: Tue, 3 Mar 2020 17:49:57 -0500 Subject: [PATCH] style: remove last traces of tunnel references in code --- client/proxy/proxy.go | 2 +- server/dashboard_api.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/proxy/proxy.go b/client/proxy/proxy.go index c2366bc7..c263e1d2 100644 --- a/client/proxy/proxy.go +++ b/client/proxy/proxy.go @@ -146,7 +146,7 @@ func (pxy *TcpProxy) InWorkConn(conn net.Conn, m *msg.StartWorkConn) { conn, []byte(pxy.clientCfg.Token), m) } -// TCP HTTP Tunnel +// TCP Multiplexer type TcpMuxProxy struct { *BaseProxy diff --git a/server/dashboard_api.go b/server/dashboard_api.go index 9746e94a..bc91ccfb 100644 --- a/server/dashboard_api.go +++ b/server/dashboard_api.go @@ -95,7 +95,7 @@ type TcpOutConf struct { RemotePort int `json:"remote_port"` } -type TcpMuxTunnelOutConf struct { +type TcpMuxOutConf struct { BaseOutConf config.DomainConf Multiplexer string `json:"multiplexer"` @@ -131,7 +131,7 @@ func getConfByType(proxyType string) interface{} { case consts.TcpProxy: return &TcpOutConf{} case consts.TcpMuxProxy: - return &TcpMuxTunnelOutConf{} + return &TcpMuxOutConf{} case consts.UdpProxy: return &UdpOutConf{} case consts.HttpProxy: