Ejemplo n.º 1
0
 def prompt_user():
     cm = ConnectionManager()
     name = input('Connection Name: ')
     server = input('Remote Server(ip or FQDM): ')
     local_port = input('Local Port: ')
     remote_port = input('Remote Port: ')
     cm.add_connection(name=name, server=server, local_port=local_port, remote_port=remote_port)
     cm.save()
Ejemplo n.º 2
0
def _launch_connection(connection_name):
    from tunneler.connection_manager import ConnectionManager
    cm = ConnectionManager()
    cm.establish_tunnel(connection_name)