Loading cloudcontrol/server/clients/host.py +7 −0 Original line number Diff line number Diff line Loading @@ -28,5 +28,12 @@ class HostClient(Client): """ return self.proxy.rshell_wait(label, _timeout=None) def forward(self, port, destination='127.0.0.1'): """ Create a forwarding tunnel on this client and return it. """ tun = self.conn.create_tunnel() self.proxy.forward(tun.label, port, destination) return tun Client.register_client_class(HostClient) Loading
cloudcontrol/server/clients/host.py +7 −0 Original line number Diff line number Diff line Loading @@ -28,5 +28,12 @@ class HostClient(Client): """ return self.proxy.rshell_wait(label, _timeout=None) def forward(self, port, destination='127.0.0.1'): """ Create a forwarding tunnel on this client and return it. """ tun = self.conn.create_tunnel() self.proxy.forward(tun.label, port, destination) return tun Client.register_client_class(HostClient)