Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9174
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jul 2, 2024
1 parent 4cb496a commit 9619058
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugin/YPTSocket/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,27 @@
if (!isPortOpen('127.0.0.1', $port)) {
_log("Port {$port} is not open on localhost");
die();
}else{
_log("Sucess: Port {$port} is open on localhost");
}

if (!isDomainResolving($address)) {
_log("Domain {$address} is not resolving");
die();
}else{
_log("Sucess: Domain {$address} is resolving");
}

if (!isPortOpen($address, $port)) {
_log("Port {$port} is not open on {$address}");
die();
}else{
_log("Sucess: Port {$port} is open on {$address}");
}


_log("Testing Socket connection");

$url = "://localhost:{$port}";
$SocketURL = 'ws' . $url;
_test_send($SocketURL, 'ws');
Expand Down

0 comments on commit 9619058

Please sign in to comment.