Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: small readability and consistency details #104

Merged
merged 4 commits into from
Mar 30, 2024

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Mar 29, 2024

No description provided.

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.
Copy link

github-actions bot commented Mar 29, 2024

Binder 👈 Launch a binder notebook on this branch for commit 4219727

I will automatically update this comment whenever this PR is modified

Binder 👈 Launch a binder notebook on this branch for commit 7797912

Comment on lines -40 to +41
vnc_args = [vncserver, '-rfbport', '{port}']
socket_args = []
websockify_args = []
vnc_args = [vncserver, '-localhost', '-rfbport', '{port}']
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About passing -localhost to turbovnc

This won't change anything, its just about making both VNC servers startup as localhost and not just TigerVNC for consistency.

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.

@consideRatio
Copy link
Member Author

I'll go for a self-merge and prepare a changelog for a release

@consideRatio consideRatio changed the title refactor: a few smaller details refactor: small readability and consistency details Mar 30, 2024
@consideRatio consideRatio merged commit 203e123 into jupyterhub:main Mar 30, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant