Projet

Général

Profil

« Précédent | Suivant » 

Révision e35ec763

Ajouté par Renato Botelho il y a plus de 9 ans

Do not reset source and destination port range values when it's an associated rule created by nat port forward. It fixes #3778

Voir les différences:

usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
6 6
	if ((document.iform.srcbeginport.selectedIndex == 0) && portsenabled && editenabled) {
7 7
		document.iform.srcbeginport_cust.disabled = 0;
8 8
	} else {
9
		document.iform.srcbeginport_cust.value = "";
9
		if (editenabled)
10
			document.iform.srcbeginport_cust.value = "";
10 11
		document.iform.srcbeginport_cust.disabled = 1;
11 12
	}
12 13
	if ((document.iform.srcendport.selectedIndex == 0) && portsenabled && editenabled) {
13 14
		document.iform.srcendport_cust.disabled = 0;
14 15
	} else {
15
		document.iform.srcendport_cust.value = "";
16
		if (editenabled)
17
			document.iform.srcendport_cust.value = "";
16 18
		document.iform.srcendport_cust.disabled = 1;
17 19
	}
18 20
	if ((document.iform.dstbeginport.selectedIndex == 0) && portsenabled && editenabled) {
19 21
		document.iform.dstbeginport_cust.disabled = 0;
20 22
	} else {
21
		document.iform.dstbeginport_cust.value = "";
23
		if (editenabled)
24
			document.iform.dstbeginport_cust.value = "";
22 25
		document.iform.dstbeginport_cust.disabled = 1;
23 26
	}
24 27
	if ((document.iform.dstendport.selectedIndex == 0) && portsenabled && editenabled) {
25 28
		document.iform.dstendport_cust.disabled = 0;
26 29
	} else {
27
		document.iform.dstendport_cust.value = "";
30
		if (editenabled)
31
			document.iform.dstendport_cust.value = "";
28 32
		document.iform.dstendport_cust.disabled = 1;
29 33
	}
30 34

  

Formats disponibles : Unified diff