Skip to content

Commit

Permalink
refactor: let turbovnc listen to localhost
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
consideRatio committed Mar 29, 2024
1 parent a27fde4 commit 4219727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_remote_desktop_proxy/setup_websockify.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def setup_websockify():
vnc_args = [vncserver, '-rfbunixpath', sockets_path]
else:
websockify_args = []
vnc_args = [vncserver, '-rfbport', '{port}']
vnc_args = [vncserver, '-localhost', '-rfbport', '{port}']

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

0 comments on commit 4219727

Please sign in to comment.