[
https://issues.apache.org/jira/browse/FELIX-4345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
J.W. Janssen resolved FELIX-4345.
---------------------------------
Resolution: Fixed
Fixed in rev #1725532.
> Add support for IPv4 and IPv6 addresses for console
> ---------------------------------------------------
>
> Key: FELIX-4345
> URL: https://issues.apache.org/jira/browse/FELIX-4345
> Project: Felix
> Issue Type: Improvement
> Components: Gogo Shell
> Affects Versions: gogo.shell-0.10.0
> Reporter: Alex Blewitt
> Priority: Trivial
>
> The telnetd server only listens to IPv4 or IPv6 because the default value for
> the --ip parameter is "".
> Even though 'localhost' resolves to both ::1 and 127.0.0.1, passing in "" for
> the address results in it picking one of them.
> If the value is 'null' for the IP address then it will resolve and bind to
> both network addresses.
> The bug is here:
> 118 server = new ServerSocket(port, 0, InetAddress.getByName(ip));
> This should be:
> InetAddress address = "".equals(ip) ? null :
> InetAddress.getByName(p);
> 118 server = new ServerSocket(port, 0, address);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)