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

Fix for missing returns. #5

Merged
merged 2 commits into from Feb 15, 2016
Merged

Fix for missing returns. #5

merged 2 commits into from Feb 15, 2016

Conversation

alekc
Copy link
Contributor

@alekc alekc commented Feb 14, 2016

Fix for error index out of bounds.

panic: runtime error: index out of range

goroutine 46 [running]:
h12.me/socks.dialSocks4(0x0, 0x187f68e0, 0x10, 0x187f6b20, 0x10, 0xb6b91588, 0x1880e080, 0xb6b8c018, 0x1880e188)
/root/go/src/h12.me/socks/socks.go:161 +0x982
h12.me/socks.DialSocksProxy.func2(0x8379b4c, 0x3, 0x187f6b20, 0x10, 0x0, 0x0, 0x0, 0x0)
/root/go/src/h12.me/socks/socks.go:69 +0x60
net/http.(_Transport).dial(0x187598f0, 0x8379b4c, 0x3, 0x187f6b20, 0x10, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/net/http/transport.go:499 +0x68
net/http.(_Transport).dialConn(0x187598f0, 0x0, 0x83b0f20, 0x4, 0x187f6b20, 0x10, 0x0, 0x0, 0x0)
/usr/lib/go/src/net/http/transport.go:596 +0x1619
net/http.(_Transport).getConn.func4(0x187598f0, 0x0, 0x83b0f20, 0x4, 0x187f6b20, 0x10, 0x187fc140)
/usr/lib/go/src/net/http/transport.go:549 +0x4d
created by net/http.(_Transport).getConn
/usr/lib/go/src/net/http/transport.go:551 +0x20d

@h12w
Copy link
Owner

h12w commented Feb 15, 2016

Thanks. Could you please use "go fmt" tool to format the changed file?

@alekc
Copy link
Contributor Author

alekc commented Feb 15, 2016

Done

h12w pushed a commit that referenced this pull request Feb 15, 2016
Fix for missing returns.
@h12w h12w merged commit 6e16ba9 into h12w:master Feb 15, 2016
@alekc alekc deleted the bugfix branch February 15, 2016 11:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants