yinghuocho / gotun2socks

A Golang implementation of tun2socks
BSD 2-Clause "Simplified" License
292 stars 103 forks source link

A problem occurred while processing udp packets #24

Open Yewenyu opened 3 years ago

Yewenyu commented 3 years ago

I found that the UDP connection will be closed immediately when there is a UDP packet to receive, it happened here: udp.go line 311 .... case <-ut.socksClosed: ...

it closed because there is a method called: udp.go line 235 go gosocks.ConnMonitor(ut.socksConn, ut.socksClosed) I don't understand what this method is for, so I commented it out, and then udp packets will receive normally, okay This problem causes DNS authentication to fail