mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
Add comment about random ports
This commit is contained in:
parent
9fd30e2cc9
commit
1ddc0fbc32
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue