diff --git a/README.md b/README.md index b670eda..648a232 100644 --- a/README.md +++ b/README.md @@ -224,6 +224,9 @@ When submitting code, please keep commits small, and do not modify the README fi # Changelog +### 0.10.3 +* CLI: Fix port and host not displaying the right data after refactoring. + ### 0.10.2 * Dependencies: Update Chokidar, opts, and WS to latest versions. * CLI: Fix `--corp` flag not working as intended diff --git a/lib/command.coffee b/lib/command.coffee index 10c8d9b..315be9d 100644 --- a/lib/command.coffee +++ b/lib/command.coffee @@ -7,7 +7,7 @@ runner = -> server = res.server path = res.path - console.log "Starting LiveReload v#{pjson.version} for #{path} on #{server.host}:#{server.port}." + console.log "Starting LiveReload v#{pjson.version} for #{path} on #{server.config.host}:#{server.config.port}." server.on 'error', (err) -> diff --git a/lib/command.js b/lib/command.js index 550741e..a7cf147 100644 --- a/lib/command.js +++ b/lib/command.js @@ -13,7 +13,7 @@ res = parseArgsAndCreateServer(true); server = res.server; path = res.path; - console.log(`Starting LiveReload v${pjson.version} for ${path} on ${server.host}:${server.port}.`); + console.log(`Starting LiveReload v${pjson.version} for ${path} on ${server.config.host}:${server.config.port}.`); server.on('error', function(err) { if (err.code === "EADDRINUSE") { console.log("The port LiveReload wants to use is used by something else."); diff --git a/package.json b/package.json index 2a1066b..2ff8f38 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "livereload", "description": "LiveReload server", - "version": "0.10.2", + "version": "0.10.3", "contributors": [ { "name": "Brian P. Hogan",