Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug found in packet.go #103

Closed
JMVoid opened this issue Aug 5, 2018 · 2 comments
Closed

A bug found in packet.go #103

JMVoid opened this issue Aug 5, 2018 · 2 comments

Comments

@JMVoid
Copy link

JMVoid commented Aug 5, 2018

A bug was found in udp relay function.
in packet.go, line 83
return len(b), addr, err
the return variable of reading byte length should be len(bb) but not len(b). the b is input variable length come from buf (buf := make([]byte, udpBufSize)). so the return reading byte length always 65536.

@TongxiJi
Copy link

yes, a biiiiiiiiig bug.

@lixin9311
Copy link
Collaborator

Thank you for pointing it out
Fixed in #109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants