diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-05-30 01:22:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-05-30 01:22:06 +0000 |
commit | 06110a2a3a5fcad5fdd5f79b7bfe5b1ee9869dc4 (patch) | |
tree | cc5a090a0a452cbebd0252b56926bde1fa4e8775 | |
parent | a38bf2457e8642dfa8a7d0b67fdb86dfa998e81f (diff) | |
download | pfsense-06110a2a3a5fcad5fdd5f79b7bfe5b1ee9869dc4.zip pfsense-06110a2a3a5fcad5fdd5f79b7bfe5b1ee9869dc4.tar.gz |
Do not check for disabled nat reflection before installing tftp helper.
-rw-r--r-- | etc/inc/filter.inc | 8 |
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; } |