- Timestamp:
- Jan 9, 2009, 11:50:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/vnc-client/invirt-vnc-client
r1972 r1973 11 11 -l, --listen [HOST:]PORT port (and optionally host) to listen on for 12 12 connections (default is 127.0.0.1 and a randomly 13 chosen port) 13 chosen port). Use an empty HOST to listen on all 14 interfaces (INSECURE!) 14 15 -a, --authtoken AUTHTOKEN Authentication token for connecting to the VNC server 15 16 VMNAME VM name to connect to (automatically fetches an … … 142 143 if ":" in a: 143 144 listen = a.split(":", 2) 145 listen[1] = int(listen[1]) 144 146 else: 145 listen[1] = a147 listen[1] = int(a) 146 148 elif o in ("-a", "--authtoken"): 147 149 authtoken = a … … 191 193 listen[1] = 5900 192 194 ready = False 193 while not ready :195 while not ready and listen[1] < 6000: 194 196 try: 195 reactor.listenTCP(listen[1], ProxyFactory(connect_host, connect_port, authtoken, machine) )197 reactor.listenTCP(listen[1], ProxyFactory(connect_host, connect_port, authtoken, machine), interface=listen[0]) 196 198 ready = True 197 199 except error.CannotListenError:
Note: See TracChangeset
for help on using the changeset viewer.