diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-20 12:32:50 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-20 12:36:14 -0200 |
commit | be472219c6a761b97bce686e6316285066bcb5ba (patch) | |
tree | 296b0ad104af478729e3cf5528bac6546eb4b353 /src | |
parent | c85b1242ae66f855512813ad97b4963e1589abb6 (diff) | |
parent | 2073c2d58531c00682aa1d9dc889e51443078e3c (diff) | |
download | pfsense-be472219c6a761b97bce686e6316285066bcb5ba.zip pfsense-be472219c6a761b97bce686e6316285066bcb5ba.tar.gz |
Merge pull request #2088 from phil-davis/bindlan
Diffstat (limited to 'src')
-rw-r--r-- | src/conf.default/config.xml | 2 | ||||
-rw-r--r-- | src/etc/inc/globals.inc | 2 | ||||
-rw-r--r-- | src/etc/inc/services.inc | 10 | ||||
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 13 |
4 files changed, 16 insertions, 11 deletions
diff --git a/src/conf.default/config.xml b/src/conf.default/config.xml index 7831f18..7dc6888 100644 --- a/src/conf.default/config.xml +++ b/src/conf.default/config.xml @@ -1,6 +1,6 @@ <?xml version="1.0"?> <pfsense> - <version>12.7</version> + <version>12.8</version> <lastchange/> <system> <optimization>normal</optimization> diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc index 5768f59..18eabf8 100644 --- a/src/etc/inc/globals.inc +++ b/src/etc/inc/globals.inc @@ -71,7 +71,7 @@ $g = array( "disablecrashreporter" => false, "crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php", "debug" => false, - "latest_config" => "12.7", + "latest_config" => "12.8", "nopkg_platforms" => array("cdrom"), "minimum_ram_warning" => "101", "minimum_ram_warning_text" => "128 MB", diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index d3102bc..0c7a3fd 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -2276,10 +2276,6 @@ begemotSnmpdCommunityDisable = 1 EOD; - if (isset($config['snmpd']['bindlan'])) { - $config['snmpd']['bindip'] = 'lan'; - unset($config['snmpd']['bindlan']); - } $bind_to_ip = "0.0.0.0"; if (isset($config['snmpd']['bindip'])) { if (is_ipaddr($config['snmpd']['bindip'])) { @@ -2376,13 +2372,9 @@ EOD; fclose($fd); unset($snmpdconf); - if (isset($config['snmpd']['bindlan'])) { - $bindlan = ""; - } - /* run bsnmpd */ mwexec("/usr/sbin/bsnmpd -c {$g['varetc_path']}/snmpd.conf" . - "{$bindlan} -p {$g['varrun_path']}/snmpd.pid"); + " -p {$g['varrun_path']}/snmpd.pid"); if (platform_booting()) { echo gettext("done.") . "\n"; diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index 46c4ae9..06293c6 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -4089,4 +4089,17 @@ function upgrade_126_to_127() { } +function upgrade_127_to_128() { + global $config; + + // If bindip is not already specified then migrate the old SNMP bindlan flag to a bindip setting + if (isset($config['snmpd']['bindlan'])) { + if (!isset($config['snmpd']['bindip'])) { + $config['snmpd']['bindip'] = 'lan'; + } + unset($config['snmpd']['bindlan']); + } + +} + ?> |