Skip to content

Commit

Permalink
fix: scan in port 80
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Mar 6, 2024
1 parent 4873877 commit 3db4d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useIPScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ export const useIPScanner = ({ allIps }: IPScannerProps) => {

async function testIPs(ipList: string[]) {
let isSSL = false;
if (ports.https.includes(state.portValue)) {
if (state.sniValue !== '' && ports.https.includes(state.portValue)) {
isSSL = true;
}
for (const ip of ipList) {
increaseTestNo();

let url = `http://${ip}:${state.portValue}`;
let path = `/cdn-cgi/trace`;
if (state.sniValue !== '' && isSSL ) {
if ( isSSL ) {
url = `https://${ip}:${state.portValue}`;
path = `/__down`;
}
Expand Down

0 comments on commit 3db4d1b

Please sign in to comment.