Prechádzať zdrojové kódy

feat(analysis_connections): 增加monitor_lanip函数中maxnum和limit参数的默认值

- 将maxnum参数的默认值从500增加到100000
- 将limit参数的默认值从"0,20"调整为"0,100000"
mcbaiyun 2 mesiacov pred
rodič
commit
456e7db89d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      analysis_connections.py

+ 1 - 1
analysis_connections.py

@@ -14,7 +14,7 @@ ROOT = Path(__file__).resolve().parent
 CONFIG_PATH = ROOT / "config.json"
 
 
-def monitor_lanip(ip: str, interface: str = "all", proto: str = "all", maxnum: int = 500, limit: str = "0,20", timeout: int = 10) -> Tuple[requests.Response, Optional[dict]]:
+def monitor_lanip(ip: str, interface: str = "all", proto: str = "all", maxnum: int = 100000, limit: str = "0,100000", timeout: int = 10) -> Tuple[requests.Response, Optional[dict]]:
 	"""Call the monitor_lanip action and return (resp, json_data).
 
 	Example payload: