From 06110a2a3a5fcad5fdd5f79b7bfe5b1ee9869dc4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 30 May 2007 01:22:06 +0000 Subject: [PATCH] Do not check for disabled nat reflection before installing tftp helper. --- etc/inc/filter.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 7d12b03f91..b757e57d56 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"; + $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"); + if(!isset($config['system']['disablenatreflection'])) { - $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"); - /* start redirects on port 19000 of localhost */ $starting_localhost_port = 19000; }