mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
listener with tls transport layer
This commit is contained in:
1 parent
5383ac4fc0
commit
e27601f648
12 files changed
+223
-140
No files matched your search
@@ -48,7 +48,7 @@ func NewTCPTunServer(s string, dialer proxy.Dialer) (proxy.Server, error) {
|
||||
}
|
||||
|
||||
// ListenAndServe .
|
||||
func (s *TCPTun) ListenAndServe() {
|
||||
func (s *TCPTun) ListenAndServe(_ net.Conn) {
|
||||
l, err := net.Listen("tcp", s.addr)
|
||||
if err != nil {
|
||||
log.F("failed to listen on %s: %v", s.addr, err)
|
||||
|
||||
Reference in new issue
Block a user