From 5c8ebd584f3fb15913724214e807a04409a00f25 Mon Sep 17 00:00:00 2001 From: Immortal Date: Wed, 6 Mar 2024 10:40:15 +0330 Subject: [PATCH] set port --- src/hooks/useIPScanner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useIPScanner.ts b/src/hooks/useIPScanner.ts index b68fad0..4b2f3e2 100644 --- a/src/hooks/useIPScanner.ts +++ b/src/hooks/useIPScanner.ts @@ -176,10 +176,10 @@ export const useIPScanner = ({ allIps }: IPScannerProps) => { for (const ip of ipList) { increaseTestNo(); - let url = `http://${ip}`; + let url = `http://${ip}:${state.portValue}`; let path = `/cdn-cgi/trace`; if (state.sniValue !== '' && isSSL ) { - url = `https://${ip}`; + url = `https://${ip}:${state.portValue}`; path = `/__down`; }