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

feat: add the --host option #28

Merged
merged 1 commit into from Apr 7, 2022
Merged

feat: add the --host option #28

merged 1 commit into from Apr 7, 2022

Conversation

yusukebe
Copy link
Owner

@yusukebe yusukebe commented Apr 7, 2022

The user can specify the hostname the server will bind with a --host option. The default value is localhost.

Usage:

$ gh markdown-preview --host 192.168.3.3

Outputs:

2022/04/07 18:29:49 Accepting connections at http://192.168.3.3:3333/
2022/04/07 18:29:49 Open http://192.168.3.3:3333/ on your browser

If locahost is set, you can't access it from the other global address.

@yusukebe yusukebe merged commit e6b41f3 into master Apr 7, 2022
@yusukebe yusukebe deleted the feat/host-option branch April 7, 2022 10:43
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.

None yet

1 participant