From a93b162c23bd871870bf7a870655b1364c738de4 Mon Sep 17 00:00:00 2001 From: Chris Duell Date: Thu, 5 Feb 2015 10:34:11 +1100 Subject: [PATCH] Fix for livereload on IP based addresses postToLiveReload was assuming that the server was running localhost, this allows it to run on an IP based address --- lib/ionic/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ionic/serve.js b/lib/ionic/serve.js index 890c74438e..ad9f23df6a 100644 --- a/lib/ionic/serve.js +++ b/lib/ionic/serve.js @@ -593,7 +593,7 @@ IonicTask.prototype._goToHistory = function(goHistory) { IonicTask.prototype._postToLiveReload = function(files) { - request.post('http://localhost:' + this.liveReloadPort + '/changed', { + request.post('http://' + this.address + ':' + this.liveReloadPort + '/changed', { path: '/changed', method: 'POST', body: JSON.stringify({