Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jan 13, 2025
1 parent d5362c6 commit f389111
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion objects/functionsExec.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,13 @@ function isPortOpenExternal($port) {
$ports = array($port);
//postVariables($url, $array, $httpcodeOnly = true, $timeout = 10)
$response = postVariables('https://search.ypt.me/checkPorts.json.php', $ports, false, 4);
return $response;
if(!empty($response)){
$json = json_decode($response);
if(!empty($json)){
$json->ports[0]->isOpen;
}
}
return false;
}

function getPIDUsingPort($port)
Expand Down

0 comments on commit f389111

Please sign in to comment.