Commit 0117897c authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with forwards crashing server

parent 065e6dcf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1349,7 +1349,8 @@ class CliClient(Client):
            self.unregister_tunnel(tun.label)

        ctun = self.conn.create_tunnel(label=label, endpoint=tun.socket,
                                       on_shutdown=cb_on_shutdown)
                                       on_shutdown=cb_on_shutdown,
                                       close_endpoint_on_shutdown=False)
        self._tunnels[ctun.label] = (ttype, client, ctun, tun)
        return ctun