Support of dynamic port allocation
Brought to you by:
wimpi
Instead of explicity setting the telnetd server port
with help of a <listener-name>.port property, a
listener could dynamically allocate any free port if
<listener-name>.port = 0.
To make this work, two lines of code in
PortListener.java have to be added:
166a166,167
> if (m_Port == 0)
> m_Port = m_ServerSocket.getLocalPort();
If this change is implemented, i guess getPort() method
would make sense.
Any comments?
--
Roland