Loading cloudcontrol/node/host/__init__.py +2 −3 Original line number Diff line number Diff line Loading @@ -302,12 +302,12 @@ class Handler(BasePlugin): @threadless def shell_resize(self, label, row, col, xpixel, ypixel): """Resize the rshell.""" """Resize the shell's attached terminal.""" self.shells[label].resize(row, col, xpixel, ypixel) @pass_connection def forward(self, conn, label, port, destination='127.0.0.1'): # create socket """TCP port forwarding.""" try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: Loading @@ -318,7 +318,6 @@ class Handler(BasePlugin): except socket.error: logger.exception('Error while connecting to destination (forward)') raise # create tunnel conn.create_tunnel(label=label, endpoint=sock) @pass_connection Loading Loading
cloudcontrol/node/host/__init__.py +2 −3 Original line number Diff line number Diff line Loading @@ -302,12 +302,12 @@ class Handler(BasePlugin): @threadless def shell_resize(self, label, row, col, xpixel, ypixel): """Resize the rshell.""" """Resize the shell's attached terminal.""" self.shells[label].resize(row, col, xpixel, ypixel) @pass_connection def forward(self, conn, label, port, destination='127.0.0.1'): # create socket """TCP port forwarding.""" try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: Loading @@ -318,7 +318,6 @@ class Handler(BasePlugin): except socket.error: logger.exception('Error while connecting to destination (forward)') raise # create tunnel conn.create_tunnel(label=label, endpoint=sock) @pass_connection Loading