Explorar el Código

nftables: Do not sort ports as they are pre-arranged by NACL

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm hace 2 años
padre
commit
a88732a11d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      _modules/ffho_netfilter.py

+ 1 - 1
_modules/ffho_netfilter.py

@@ -80,7 +80,7 @@ def generate_service_rules (services, acls, af):
 
 		# Multiple ports?
 		if len (srv['ports']) > 1:
-			ports = "{ %s }" % ", ".join (map (str, sorted (srv['ports'])))
+			ports = "{ %s }" % ", ".join (map (str, srv['ports']))
 		else:
 			ports = srv['ports'][0]