Commit c65e8f79 authored by Anael Beutot's avatar Anael Beutot
Browse files

Comments

parent 8d24a8c6
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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:
@@ -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