]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
Firewall: When using DNAT AUTO, don't display the IP anymore in brackets
authorAlexander Marx <alexander.marx@ipfire.org>
Mon, 28 Apr 2014 12:55:22 +0000 (14:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Apr 2014 14:18:10 +0000 (16:18 +0200)
html/cgi-bin/firewall.cgi

index ff950c449a56e8e0e962e260b04ee7c81ef1bda0..48e3a8d2a6efe78855d02f8d8c38df6509e32927 100644 (file)
@@ -2562,11 +2562,11 @@ END
                                                push (@nat_ifaces,&fwlib::get_nat_address($$hash{$key}[29],$val));
                                        }
                                        @nat_ifaces=&del_double(@nat_ifaces);
-                                       $natstring = join(', ', @nat_ifaces);
+                                       $natstring = "";
                                }else{
-                                       $natstring = $$hash{$key}[29];
+                                       $natstring = "($$hash{$key}[29])";
                                }
-                               print "$Lang::tr{'firewall'} ($natstring)";
+                               print "$Lang::tr{'firewall'} $natstring";
                                if($$hash{$key}[30] ne ''){
                                        $$hash{$key}[30]=~ tr/|/,/;
                                        print": $$hash{$key}[30]";