sandialabs / wiretap

Wiretap is a transparent, VPN-like proxy server that tunnels traffic via WireGuard and requires no special privileges to run.
Other
843 stars 37 forks source link

Error after a successful DNS query terminates server process #30

Closed S3mprGumb1 closed 10 months ago

S3mprGumb1 commented 11 months ago

I'm getting an error after DNS requests that causes the server process to panic and terminate. My current workaround is to wrap the server in a while loop, but that's not very elegant.

Roughly the same stack trace when the server is on linux or windows: wiretap[.exe] : panic: unknown network protocol number 0 wiretap/transport/udp.getDataFromPacket() wiretap/transport/udp/udp.go:128

luker983 commented 10 months ago

Thanks for the report! UDP conversation resources weren't being cleaned up correctly. Should be fixed now.