File diff f4bb5c3c3539 → adb80c4c58a5
conntrackt/iptables.py
Show inline comments
 
@@ -31,12 +31,12 @@ class Rule(object):
 
        produce comments in the output.
 
        """
 

	
 
        if protocol not in ("TCP", "UDP", "ICMP"):
 
        if protocol.upper() not in ("TCP", "UDP", "ICMP"):
 
            raise ValueError("Unsupported protocol specified: %s" % protocol)
 

	
 
        self.source = source
 
        self.destination = destination
 
        self.protocol = protocol
 
        self.protocol = protocol.lower()
 
        self.port = port
 
        self.description = description