From 564a42cf8ed83ba5669eacefefebe6c44112fefc Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 15 Feb 2005 00:05:51 +0000 Subject: [PATCH] No need for 2 carriage returns after rdr rule. --- etc/inc/filter.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index a11d6b375f..fad58b2e4f 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -815,20 +815,20 @@ function filter_nat_rules_generate() { if ((!$extport[1]) || ($extport[0] == $extport[1])) { if($rule['protocol'] == "tcp/udp") $natrules .= - "rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]} -> {$target} port {$rule['local-port']}\n"; + "rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]} -> {$target} port {$rule['local-port']}"; else $natrules .= - "rdr on $natif proto " . $rule['protocol'] . " from any to {$extaddr} port {$extport[0]} -> {$target} port {$rule['local-port']}\n"; + "rdr on $natif proto " . $rule['protocol'] . " from any to {$extaddr} port {$extport[0]} -> {$target} port {$rule['local-port']}"; } else { if($rule['protocol'] == "tcp/udp") $natrules .= "rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:{$extport[1]}" . - "-> {$target} \n"; + "-> {$target}"; else $natrules .= "rdr on $natif proto " . $rule['protocol']. " from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:{$extport[1]}" . - "-> {$target} \n"; + "-> {$target}"; } $natrules .= "\n";