diff --git a/gulpfile.js b/gulpfile.js index bf8114e86..aba8cd827 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -265,7 +265,7 @@ gulp.task('watch', function (done) { done(); }); -gulp.task('serve', serve({ root: 'dist', port: 4000 })); +gulp.task('serve', serve({ root: 'dist', port: 4000, hostname: '0.0.0.0' })); gulp.task('develop', gulp.series(['default', 'watch', 'serve'])); diff --git a/src/js/main.js b/src/js/main.js index b94133ca3..72415186d 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -99,7 +99,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route', } // support local development with localhost check - if (window.location.hostname !== status.adminFqdn && window.location.hostname !== 'localhost') { + if (window.location.hostname !== status.adminFqdn && window.location.hostname !== 'localhost' && !window.location.hostname.startsWith('192.')) { // user is accessing by IP or by the old admin location (pre-migration) window.location.href = '/setupdns.html' + window.location.search; return;