nopasaran.utils.group_ports

nopasaran.utils.group_ports(ports)

Group consecutive ports into ranges.

Args:

ports (list): List of port numbers

Returns:

list: List of port numbers and ranges