-
Notifications
You must be signed in to change notification settings - Fork 564
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 hijack dial #53
Fix hijack dial #53
Conversation
The type assertion on line 218 still seems to cause issues when a unix socket is used. Perhaps replace if err := rwc.(*net.TCPConn).CloseWrite(); err != nil {
fmt.Fprintf(errStream, "Couldn't send EOF: %s\n", err)
} with if err := rwc.(interface{ CloseWrite() error }).CloseWrite(); err != nil {
fmt.Fprintf(errStream, "Couldn't send EOF: %s\n", err)
} |
Ah, gotcha. |
@benmccann thank you! Can you write a code to test it? If you need help let me know. |
@andrewsmedina thanks for the help merging these commits! would love to get this last one in. any ideas on how to proceed? i don't really know how to write a test for this one |
maybe this one you could merge and write a test for? the issue is that hijack does not have an existing test so i would have to write one from scratch and don't know enough go to know how to do that |
@benmccann I will do it :) |
awesome. thanks you Andrews! i will look at how you did it, so hopefully i can next time |
btw, think we could merge this change now and then do the test in another commit? |
awesome! thank you so much! |
No description provided.