add note on why we only use href and not the hostname
This commit is contained in:
@@ -194,6 +194,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
|
||||
// support local development with localhost check
|
||||
if (window.location.hostname !== status.adminFqdn && window.location.hostname !== 'localhost') {
|
||||
// user is accessing by IP or by the old admin location (pre-migration)
|
||||
window.location.href = '/setupdns.html';
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user