Skip to content

Commit

Permalink
Enhance port detections
Browse files Browse the repository at this point in the history
  • Loading branch information
hobsRKM committed Apr 24, 2024
1 parent 089261d commit 82ab86d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public function getAllServerInfo(RconService $rcon)

private function isPortOpen($ip, $port, $timeout = 1) {
$fp = @fsockopen($ip, $port, $errno, $errstr, $timeout);
if ($fp) {
fclose($fp);
if (!in_array($errno, [SOCKET_ETIMEDOUT,SOCKET_EHOSTUNREACH,SOCKET_ENETUNREACH]) && stripos(strtolower($errstr), 'failed') === false) {
$fp ? fclose($fp) : '';
return true;
} else {
return false;
Expand Down
6 changes: 1 addition & 5 deletions body.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
Release notes V 1.2.0
## Important- This is major release for SimpleAdmin Support version 1.3.9
Release notes V 1.2.3

## Update your simpleAdmin to latest version
if you do not want to update , you simple ignore this and continue using panel, but this panel update has new features.
## Future olderversion support will be removed.
# Update Log
- Updated the panel to support latest version of cs2SimpleAdmin 1.3.9
- Added edit/mute ban , you can now edit banned/unbanned players form listing to extend bans or re add ban
Expand Down

0 comments on commit 82ab86d

Please sign in to comment.