summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-30 01:22:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-30 01:22:06 +0000
commit06110a2a3a5fcad5fdd5f79b7bfe5b1ee9869dc4 (patch)
treecc5a090a0a452cbebd0252b56926bde1fa4e8775 /etc/inc
parenta38bf2457e8642dfa8a7d0b67fdb86dfa998e81f (diff)
downloadpfsense-06110a2a3a5fcad5fdd5f79b7bfe5b1ee9869dc4.zip
pfsense-06110a2a3a5fcad5fdd5f79b7bfe5b1ee9869dc4.tar.gz
Do not check for disabled nat reflection before installing tftp helper.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 7d12b03..b757e57 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -956,12 +956,12 @@ function filter_nat_rules_generate() {
if (isset($config['nat']['rule'])) {
$natrules .= "# NAT Inbound Redirects\n";
- if(!isset($config['system']['disablenatreflection'])) {
- $inetd_fd = fopen("/var/etc/inetd.conf","w");
+ $inetd_fd = fopen("/var/etc/inetd.conf","w");
- /* add tftp protocol helper */
- fwrite($inetd_fd, "tftp\tdgram\tudp\twait\t\troot\t/usr/local/sbin/tftp-proxy -v\n");
+ /* add tftp protocol helper */
+ fwrite($inetd_fd, "tftp\tdgram\tudp\twait\t\troot\t/usr/local/sbin/tftp-proxy -v\n");
+ if(!isset($config['system']['disablenatreflection'])) {
/* start redirects on port 19000 of localhost */
$starting_localhost_port = 19000;
}
OpenPOWER on IntegriCloud