Allow local network development to test mobile/iOS better

This commit is contained in:
Johannes Zellner
2021-03-18 14:43:17 +01:00
parent 5d5c712f1c
commit 53e50912e6
2 changed files with 2 additions and 2 deletions

View File

@@ -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;