Comparing version 15.1.11 to 15.1.12
@@ -15,3 +15,3 @@ #!/usr/bin/env node | ||
}, {}), | ||
ip = argv.ip || "0.0.0.0", | ||
ip = argv.ip || "127.0.0.1", | ||
port = argv.port || 8000; | ||
@@ -21,2 +21,2 @@ | ||
http.createServer(router.route).listen(port, ip); | ||
console.log(`id=woodland, type=local, ip=${ip}, port=${port}`); | ||
console.log(`id=woodland, hostname=localhost, ip=${ip}, port=${port}`); |
{ | ||
"name": "woodland", | ||
"version": "15.1.11", | ||
"version": "15.1.12", | ||
"description": "Lightweight HTTP router with automatic headers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -88,3 +88,3 @@ <img src="https://avoidwork.github.io/woodland/logo.svg" width="108" /> | ||
## Command Line Interface (CLI) | ||
When woodland is installed as a global module you can serve the contents of a folder by executing `woodland` in a shell. Optional parameters are `--ip=0.0.0.0` & `--port=8000`. | ||
When woodland is installed as a global module you can serve the contents of a folder by executing `woodland` in a shell. Optional parameters are `--ip=127.0.0.1` & `--port=8000`. | ||
@@ -91,0 +91,0 @@ ## Configuration |
Sorry, the diff of this file is too big to display
136563