From ef3ae40a015816284f190adc67e092c55900e646 Mon Sep 17 00:00:00 2001 From: Immortal Date: Thu, 7 Mar 2024 10:00:40 +0330 Subject: [PATCH] fix: port --- src/hooks/useIPScanner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useIPScanner.tsx b/src/hooks/useIPScanner.tsx index cf7386a..575d8de 100644 --- a/src/hooks/useIPScanner.tsx +++ b/src/hooks/useIPScanner.tsx @@ -233,7 +233,7 @@ export const useIPScanner = ({ allIps }: IPScannerProps) => { for (const ip of ipList) { increaseTestNo(); - let url = `http://${ip}:${state.portValue}`; + let url = `http://${ip}:${state.portValue < 80 ? 80 : state.portValue}`; let path = `/cdn-cgi/trace`; if ( isSSL ) { url = `https://${ip}:${state.portValue}`;