Kaynağa Gözat

- Improves comment for _is_port

Patrick Jattke 8 yıl önce
ebeveyn
işleme
aed49eed78
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      code/Attack/BaseAttack.py

+ 3 - 2
code/Attack/BaseAttack.py

@@ -88,8 +88,9 @@ class BaseAttack(metaclass=ABCMeta):
         Verifies if the given value is a valid port. Accepts port ranges, like 80-90, 80..99, 80...99.
 
         :param ports_input: The port number as int or string.
-        :return: True if the port number is valid, otherwise False. If a port range was given, the range is resolved
-        and a list of ports is additionally returned.
+        :return: True if the port number is valid, otherwise False. If a single port or a comma-separated list of ports
+        was given, a list of int is returned. If a port range was given, the range is resolved
+        and a list of int is returned.
         """
 
         def _is_invalid_port(num):