Skip to content

Commit 4219727

Browse files
committed
refactor: let turbovnc listen to localhost
TigerVNC listens to localhost by default, and TurboVNC doesn't. Let's make them do the same. When websockify starts either TigerVNC or TurboVNC, it will listen only to localhost anyhow - so this doesn't change anything really but could reduce the complexity a bit when debugging these things, as I've done at length now.
1 parent a27fde4 commit 4219727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_remote_desktop_proxy/setup_websockify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def setup_websockify():
3838
vnc_args = [vncserver, '-rfbunixpath', sockets_path]
3939
else:
4040
websockify_args = []
41-
vnc_args = [vncserver, '-rfbport', '{port}']
41+
vnc_args = [vncserver, '-localhost', '-rfbport', '{port}']
4242

4343
if not os.path.exists(os.path.expanduser('~/.vnc/xstartup')):
4444
vnc_args.extend(['-xstartup', os.path.join(HERE, 'share/xstartup')])

0 commit comments

Comments
 (0)