Uh oh!
There was an error while loading. Please reload this page.
fix(security): docsify serve should only listen on localhost - #52
fix(security): docsify serve should only listen on localhost#52solymosi wants to merge 2 commits into
docsify serve should only listen on localhost#52Conversation
anikethsaha
commented
Nov 18, 2019
Thanks for the PR 👍 |
anikethsaha
commented
Nov 18, 2019
perhaps we can add an optional flag for the |
In my testing the server was listening on In any case, the console message should not be hard-coded to say |
anikethsaha
commented
Nov 19, 2019
Strange 😕 I uses windows too but never faced this. Will try to re-create it if possible.
Yup, this need to be done. I would lean more towards the optional flag cause in general the default behavior of a CLI should be changed using flags. |
trusktr
commented
Jan 20, 2020
trusktr
commented
Jan 20, 2020
I don't really see any security concern here: https://serverfault.com/questions/78048/whats-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1 Docsify is intended to be served to the public. The administrator any machine where Docsify is served will need to take care to restrict exposure of the site as they wish. To that end, having an option to specify the function(path,openInBrowser,port,livereloadPort,host='0.0.0.0'){or similar. |
trusktr
commented
Jan 20, 2020
@solymosi Would you be willing to make that update? |
solymosi
commented
Feb 4, 2020
I've made the requested changes. Also added an |
solymosi
commented
Feb 4, 2020
I was initially made aware of the fact that Docsify actually listens on I think displaying the actual listen host (i.e. |
solymosi
commented
Feb 26, 2020
Any updates on this? |
anikethsaha
commented
Feb 26, 2020
Hey ! sorry for the delay, Lets do few things before merging it.
|
solymosi
commented
Feb 26, 2020
@anikethsaha Both done ✔️ |
Uh oh!
There was an error while loading. Please reload this page.
slikts
commented
Mar 8, 2020
I use an external machine for development, so this change is an inconvenience with little to no security benefit. |
anikethsaha
commented
Mar 8, 2020
It will be in for next release ! |
atharva3010
commented
Feb 14, 2022
I need this feature to run docsify on a whitelisted hostname. Any updates? |
The local development server spawned by
docsify servelistens on all interfaces by default. This might be a security concern when working on an insecure local network.This PR restricts the server to
localhost/127.0.0.1.