-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 a bug in socks5 when rendering remote address #3110
Conversation
Can one of the admins verify this patch? |
ok to test |
hum, I cannot see test logs. Can someone check for me? |
|
OK, i'll fix. I think we should distinguish between DNS name and IP addresses. |
When the remote address is an IP address, we cannot directly convert byte array to string. Otherwise, we will see hex strings like "\xac\x11\x01\xc8:443". See more details about the bug in: https://community.gravitational.com/t/ssh-dynamic-port-forwarding-not-working/432 The above reported issue is resolved after applying the patch.
@webvictim can you take another look? I updated the code and the test. |
ping @klizhentas @russjones |
Looks like the test passes now @jieyu - the integration test is failing but that's probably unrelated. |
@webvictim how can I get this bug fix reviewed and merged? This is blocking our progress |
Thanks for your patience. We are currently overloaded with requests. We will get to this issue in the context of 4.2 milestone in a couple of weeks from now. |
@jieyu You can always build Teleport yourself from source with your patch included if you like. |
@webvictim we could, but that means our customers will have to use a forked version of teleport, which I am trying to avoid. This is clearly a bug, so I expect not too much trouble merging this. |
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.
@russjones can you please review sometime this week?
@jieyu the fix looks quite straightforward to me, we will try to wrap up the review this week. What version are you using? |
@klizhentas thanks for the review! we're using the latest. So if this can be included in the upcoming release, that'll be sufficient. |
sounds good to me, thank you for the patch. |
When the remote address is an IP address, we cannot directly convert
byte array to string. Otherwise, we will see hex strings like
"\xac\x11\x01\xc8:443".
See more details about the bug in:
https://community.gravitational.com/t/ssh-dynamic-port-forwarding-not-working/432
The above reported issue is resolved after applying the patch.