Skip to content

Conversation

CircuitCoder
Copy link
Contributor

This commit adds a switch --host / -H to the serve subcommand, allowing user to choose which address to bind on.

Also, by introducing a default value of "localhost", now the default behavior of serve is that the site is only accessible on the localhost. This is more secure, and more in line with the original console output, but can be a somewhat minor breaking change.

Fixes #230

Copy link
Member

@sy-records sy-records left a comment

Choose a reason for hiding this comment

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

Thanks!

We will release version v5 later, so this is not a major change and is acceptable.

Could you please update the README.md and docs/README.md files to include this content?

@CircuitCoder
Copy link
Contributor Author

update the README.md and docs/README.md files to include this content?

Added in 7be3806 :)

@sy-records sy-records merged commit 75295a0 into docsifyjs:master Oct 17, 2025
4 checks passed
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.

how to bind localhost only ?

2 participants