瀏覽代碼

- Improves comment for _is_port

Patrick Jattke 8 年之前
父節點
當前提交
aed49eed78
共有 1 個文件被更改,包括 3 次插入2 次删除
  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):