Add comment about random ports

This commit is contained in:
Anders Ingemann 2014-11-25 20:51:53 +01:00
parent 9fd30e2cc9
commit 1ddc0fbc32

View file

@ -9,6 +9,9 @@ class SSHRPCManager(object):
def __init__(self, settings):
self.settings = settings
# We can't use :0 because
# A: It's quite hard to retrieve the port on the remote after the daemon has started
# B: SSH doesn't accept 0:localhost:0 as a port forwarding option
[self.local_server_port, self.local_callback_port] = self.getNPorts(2)
[self.remote_server_port, self.remote_callback_port] = self.getNPorts(2)