listener with tls transport layer

This commit is contained in:
changx committed 2018-10-29 16:18:51 +08:00
1 parent 5383ac4fc0
commit e27601f648
12 files changed
+223 -140

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ func NewUDPTunServer(s string, dialer proxy.Dialer) (proxy.Server, error) {
}
// ListenAndServe .
func (s *UDPTun) ListenAndServe() {
func (s *UDPTun) ListenAndServe(_ net.Conn) {
c, err := net.ListenPacket("udp", s.addr)
if err != nil {
log.F("[udptun] failed to listen on %s: %v", s.addr, err)