host does not get updated to the resolved address if rdns is enabled
nulman opened this issue · 1 comments
nulman commented
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 commented
也遇到类似问题,写一个socks.socksocket的子类,重新写一个_write_SOCKS5_address函数,不过是直接写死了host,期待更好解决方法