mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
obfs: compatible with some server implementation in tls mode
This commit is contained in:
1 parent
51fedc8653
commit
6ba9e1f5e8
5 files changed
+19
-6
No files matched your search
+3
-1
@@ -32,7 +32,9 @@ func NewServer(addr string, dialer proxy.Dialer, config *Config) (*Server, error
|
||||
return s, err
|
||||
}
|
||||
|
||||
// Start .
|
||||
// Start starts the dns forwarding server
|
||||
// We use WaitGroup here to ensure both udp and tcp serer are completly running,
|
||||
// so we can start any other services later, since they may rely on dns service.
|
||||
func (s *Server) Start() {
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(2)
|
||||
|
||||
Reference in new issue
Block a user