dya2 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Public server listening on IPv6 address "::1" #591

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
Nexus S
What firmware version are you running on the device?
Android ICS 4.0.3
What steps will reproduce the problem?
1. connect to wiki that with ipv6
2. start public server.

What is the expected output? What do you see instead?
The public server listen on any non-local address, but I see the server is 
listen on "::1",
which is not public accessible.

What version of the product are you using? On what operating system?
I compile sl4a directly from source.

Please provide any additional information below.
I try to avoid the problem to test problem by check address type, below is my 
patch:
https://code.google.com/r/reivzy-sl4a/source/detail?r=5e6a97902170157b41b0605b32
ed2f5eeb1ca12a&name=server

Original issue reported on code.google.com by rei...@gmail.com on 12 Jan 2012 at 4:13

GoogleCodeExporter commented 9 years ago
This does occur on a 4.0.4 device, but not on a 2.3.5 device.  Ignoring the 
address and checking whether the interface is a loopback device would work for 
both ipv4 and ipv6:

if (!netint.isLoopback()) {
   return address;
}

Original comment by brian.le...@gmail.com on 26 Apr 2012 at 8:46

GoogleCodeExporter commented 9 years ago
Patch included in r5x16

Original comment by rjmatthews62 on 26 Apr 2012 at 11:53