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

Do not attempt to serve on "well-known" ports #824

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

homeworkprod
Copy link
Contributor

@homeworkprod homeworkprod commented Oct 24, 2019

zola serve tries to find a port in the range 1000 and up.

Ports 0–1023 are known as well-known ports and require root privileges on at Linux and likely macOS to bind a socket to them.

This (an excerpt from HTML served by zola serve) using port 1024 might be no coincidence:
port1024

Thus, just ignore those and start right after them (in the "registered ports" range).

@Keats
Copy link
Collaborator

Keats commented Oct 24, 2019

Thanks!

@Keats Keats merged commit b23c32d into getzola:next Oct 24, 2019
@homeworkprod homeworkprod deleted the avoid-wellknown-ports branch November 2, 2019 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants