mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	bug 10561: allowing to create a firewall rule with sameport range but different protocols
This commit is contained in:
		
							parent
							
								
									51f4485143
								
							
						
					
					
						commit
						c63f9fbca2
					
				| @ -232,7 +232,8 @@ public class FirewallManagerImpl implements FirewallService, FirewallManager, Ma | ||||
|             } | ||||
| 
 | ||||
|              | ||||
|             boolean allowFirewall = ((rule.getPurpose() == Purpose.Firewall || newRule.getPurpose() == Purpose.Firewall) && newRule.getPurpose() != rule.getPurpose()); | ||||
|             boolean allowFirewall = ((rule.getPurpose() == Purpose.Firewall || newRule.getPurpose() == Purpose.Firewall) && ((newRule.getPurpose() != rule.getPurpose()) || (!newRule.getProtocol().equalsIgnoreCase(rule.getProtocol())))); | ||||
|              | ||||
|              | ||||
|             if (!allowFirewall) { | ||||
|             if (rule.getPurpose() == Purpose.StaticNat && newRule.getPurpose() != Purpose.StaticNat) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user