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
+2
-1
@@ -2,6 +2,7 @@ package proxy
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
@@ -11,7 +12,7 @@ import (
|
||||
// Server interface
|
||||
type Server interface {
|
||||
// ListenAndServe as proxy server, use only in server mode.
|
||||
ListenAndServe()
|
||||
ListenAndServe(net.Conn)
|
||||
}
|
||||
|
||||
// ServerCreator is a function to create proxy servers.
|
||||
|
||||
Reference in new issue
Block a user