Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
I'm not sure if the issue I'm facing is related to this, but here it goes.
What steps will reproduce the problem?
1. Setup and start the SOCKS app as directed
2. Configure browser as directed
3. Browse any website, or use tsocks as directed
4. iPhone screen shows that a connection is being attempted, but the first
octet followed by 0.0.0 and the port number; browser/tsocks connection times
out. Screen shows "Stream open error".
What is the expected output? What do you see instead?
Connection gets established, no time outs.
What version of the product are you using? On what operating system?
I checked out the latest at the moment (r19), running this on iPhone 4 with iOS
4.
Please provide any additional information below.
Screen captures:
- http://files.ryanlim.com/img/IMG_0685.PNG
- http://files.ryanlim.com/img/IMG_0684.PNG
Original comment by lwh.ryan@gmail.com
on 6 Jul 2010 at 3:13
This seems to be a fix for the issue I experienced. Probably not the cleanest,
but it works.
Original comment by lwh.ryan@gmail.com
on 6 Jul 2010 at 4:23
Attachments:
Thanks for the report+patch. Yes there was a bug, and it was fix in r20.
The bug happened if the laptop decided to use a binary form of an IP address
and not a host name.
My guess is that this happened only if the IP was stored in the cache of the
DNS client of the laptop.
The way to reproduce it was to use "tsocks telnet 10.0.0.1 80" and configure
tsocks to use the iPhone proxy.
The bug was because *(int8_t *)s was passed as an argument to ntohl but it
should have been *(int32_t *)s
Many thanks, Udi
Original comment by udi.benr...@gmail.com
on 6 Jul 2010 at 10:19
Hah! I didn't even notice it was an int8_t pointer. :)
Thanks for fixing this.
Original comment by lwh.ryan@gmail.com
on 6 Jul 2010 at 10:51
Original issue reported on code.google.com by
jagreenw...@gmail.com
on 13 Jan 2010 at 3:58