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

host does not get updated to the resolved address if rdns is enabled #150

Open
nulman opened this issue Mar 1, 2021 · 1 comment
Open

Comments

@nulman
Copy link

nulman commented Mar 1, 2021

when using socksocket.getpeername() you get the peer url if rdns is set the True and an IP if rdns is set to False

I think the cause is at line 567. The if does not update host so later calls to getpeername return the url instead of the ip if rdns is True

This is with socks5, with socks4 It gets weirder and the address I get back is 0.0.0.1

@C370228492
Copy link

C370228492 commented Oct 13, 2021

也遇到类似问题,写一个socks.socksocket的子类,重新写一个_write_SOCKS5_address函数,不过是直接写死了host,期待更好解决方法

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

2 participants