obfs: compatible with some server implementation in tls mode

This commit is contained in:
nadoo committed 2018-12-16 13:28:24 +08:00
1 parent 51fedc8653
commit 6ba9e1f5e8
5 files changed
+19 -6

No files matched your search

+3 -1
View File
@@ -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)