summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-03 21:51:47 +0000
committerErmal <eri@pfsense.org>2011-01-03 21:53:07 +0000
commit33818198764b936e47409940adde511f58b56f43 (patch)
tree21804a80c9bb1339ce20629df2a03f27f181f26e
parente44e5f3a79aba14a054f351178030fc87b1f4771 (diff)
downloadpfsense-33818198764b936e47409940adde511f58b56f43.zip
pfsense-33818198764b936e47409940adde511f58b56f43.tar.gz
Oops remove forgotten line and correct variable name error that seems to have existed from long time. Even though the file read is not used in pfSense this days!
-rw-r--r--etc/inc/system.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 7b6bfe7..ad7a9ef 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -184,8 +184,7 @@ function get_nameservers() {
// Read in any extra nameservers
if(file_exists("/var/etc/nameservers.conf")) {
- $dns_lists = split("\n", `/bin/cat /var/etc/nameservers.conf`);
- $dns_lists = file("/var/etc/nameservers.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
+ $dns_s = file("/var/etc/nameservers.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
if(is_array($dns_s)) {
foreach($dns_s as $dns)
if (is_ipaddr($dns))
OpenPOWER on IntegriCloud