Project

General

Profile

« Previous | Next » 

Revision 262595f0

Added by Ermal LUÇI about 14 years ago

Unbreak inetd.conf generation to avoid entries containing Array entries. This gixes nat reflection and a spamming of the system with nc processes with wrong parameters.

View differences:

etc/inc/filter.inc
1059 1059
				$toadd_array = array_merge($toadd_array, range($loc_pt[0], $loc_pt[0] + $delta));
1060 1060

  
1061 1061
				if(!empty($toadd_array)) {
1062
					$target = explode(" ", trim($target));
1062 1063
					foreach($toadd_array as $tda) {
1063 1064
						if (empty($tda))
1064 1065
							continue;
......
1070 1071
								$socktype = "stream";
1071 1072
								$dash_u = "";
1072 1073
							}
1073
							$target = explode(" ", trim($target));
1074 1074
							foreach ($target as $targip) {
1075 1075
								if (empty($targip))
1076 1076
									continue;

Also available in: Unified diff