tun2socks
tun2socks copied to clipboard
UInt16() initializaiton fails when passing large data chunck
Hi,
I have found a consistent crush when using the stack.
In this line:
https://github.com/zhuhaow/tun2socks/blob/master/tun2socks/TSTCPSocket.swift#L198
UInt16(data.count)
fails because the data count is bigger then 65535.
Let me know if you need help reproducing.
Thanks.
Hi OrRon,
This is a well known issue, check #4 here.
Try if it works. I've heard that there are still other issues that cause crash.