diff --git a/DnsServerCore/www/js/main.js b/DnsServerCore/www/js/main.js index 37cdb810..eb56215e 100644 --- a/DnsServerCore/www/js/main.js +++ b/DnsServerCore/www/js/main.js @@ -1190,7 +1190,7 @@ function saveDnsSettings() { } function checkForReverseProxy(responseJSON) { - if (location.protocol == "https:") { + if (window.location.protocol == "https:") { var currentPort = window.location.port; if ((currentPort == 0) || (currentPort == ""))