summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/dyndns.class2
-rw-r--r--src/etc/inc/interfaces.inc4
-rw-r--r--src/etc/inc/system.inc6
-rw-r--r--src/usr/local/www/jquery/pfSenseHelpers.js12
4 files changed, 9 insertions, 15 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class
index 41ac192..e685935 100644
--- a/src/etc/inc/dyndns.class
+++ b/src/etc/inc/dyndns.class
@@ -439,7 +439,7 @@
break;
case 'dyns':
$needsIP = FALSE;
- $server = "https://www.dyns.cx/postscript011.php";
+ $server = "http://www.dyns.net/postscript011.php";
$port = "";
if ($this->_dnsServer) {
$server = $this->_dnsServer;
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 2e1fce5..e40b0f7 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -3098,7 +3098,7 @@ function interface_mtu_wanted_for_pppoe($realif) {
continue;
}
- $ports = explode(',',$ppp['ports']);
+ $ports = explode(',', $ppp['ports']);
$mtu_wanted = 1500;
foreach ($ports as $pid => $port) {
if (get_real_interface($port) != $realif) {
@@ -3106,7 +3106,7 @@ function interface_mtu_wanted_for_pppoe($realif) {
}
if (!empty($ppp['mtu'])) {
- $mtus = explode(',',$ppp['mtu']);
+ $mtus = explode(',', $ppp['mtu']);
} else {
$mtus == array();
}
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index f0815a0..d1a0dd0 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -1177,14 +1177,14 @@ function system_generate_nginx_config($filename,
foreach ($cp_interfaces as $cpint) {
$cpint_ip = get_interface_ip($cpint);
if (is_ipaddr($cpint_ip)) {
- $cp_hostcheck .= "\t\tif (\$http_host = $cpint_ip) {\n";
+ $cp_hostcheck .= "\t\tif (\$http_host ~* $cpint_ip) {\n";
$cp_hostcheck .= "\t\t\tset \$cp_redirect no;\n";
$cp_hostcheck .= "\t\t}\n";
}
}
if (isset($config['captiveportal'][$captive_portal]['httpsname']) &&
is_domain($config['captiveportal'][$captive_portal]['httpsname'])) {
- $cp_hostcheck .= "\t\tif (\$http_host = {$config['captiveportal'][$captive_portal]['httpsname']}) {\n";
+ $cp_hostcheck .= "\t\tif (\$http_host ~* {$config['captiveportal'][$captive_portal]['httpsname']}) {\n";
$cp_hostcheck .= "\t\t\tset \$cp_redirect no;\n";
$cp_hostcheck .= "\t\t}\n";
}
@@ -1270,7 +1270,7 @@ $nginx_config .= <<<EOD
server {
listen {$nginx_port};
listen [::]:{$nginx_port};
- client_max_body_size 100m;
+ client_max_body_size 200m;
EOD;
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js
index e2a871e..f447b65 100644
--- a/src/usr/local/www/jquery/pfSenseHelpers.js
+++ b/src/usr/local/www/jquery/pfSenseHelpers.js
@@ -391,25 +391,19 @@ $('[id^=delete]').click(function(event) {
$('[class^="infoblock"], [class^="infoblock_open"]').each(function() {
var classname = $(this).attr("class");
- var sfx = '';
+ var sfx = classname.substr(9);
- if (classname.indexOf("infoblock_open")) {
- sfx = classname.substr(15);
+ if (classname.indexOf("infoblock_open") == -1) {
$(this).hide();
- } else {
- sfx = "_" + classname.substr(10);
}
$(this).before('<i class="fa fa-info-circle icon-pointer" style="color: #337AB7; font-size:20px; margin-left: 10px; margin-bottom: 10px;" id="showinfo' + sfx + '" title="More information"></i>');
});
-// Hide information on page load
-//$('.infoblock,#infoblock').hide();
-
// Show the help on clicking the info icon
$('[id^="showinfo"]').click(function() {
var id = $(this).attr("id");
- var target = "infoblock" + id.substr(8);
+ var target = "infoblock" + id.substr(8);
$('.' + target).toggle();
});
OpenPOWER on IntegriCloud