-
Notifications
You must be signed in to change notification settings - Fork 55
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
Adding username/password parameters to Socks5 config URL #204
Conversation
This reverts commit e793764.
I had to change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let's just update the dependency
x/go.mod
Outdated
@@ -3,13 +3,13 @@ module github.com/Jigsaw-Code/outline-sdk/x | |||
go 1.20 | |||
|
|||
require ( | |||
github.com/Jigsaw-Code/outline-sdk v0.0.14 | |||
github.com/Jigsaw-Code/outline-sdk v0.0.0-20240322232535-212ef9692e98 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the new v0.0.15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
"github.com/Jigsaw-Code/outline-sdk/transport/socks5" | ||
) | ||
|
||
func newSOCKS5StreamDialerFromURL(innerDialer transport.StreamDialer, configURL *url.URL) (transport.StreamDialer, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the Go doc with the new parameter. It doesn't show the credentials currently: https://pkg.go.dev/github.com/Jigsaw-Code/outline-sdk/x/config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fortuna good catch! it slipped my mind. I updated the doc to include authentication params (UserInfo
) in the URL.
This change adds username and password params for authentication to socks5 config URL used to set up the dialer. The URL now accepts
UserInfo
parameter in form ofusername:password
. For example:socks5://username:password@domain.com:port
This change was tested with a socks5 proxy server by running connectivity test: