mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 02:48:27 +00:00
Merge pull request #348 from klightspeed/1.5-dev#fixlenrcon
Fix typo in RCON handling
This commit is contained in:
commit
ab6bf806dc
@ -272,7 +272,7 @@ rconcmd() {
|
||||
my ($sock) = @_;
|
||||
my $data = "";
|
||||
recv($sock, $data, 12, 0);
|
||||
die "Empty response" if len($data) == 0;
|
||||
die "Empty response" if length($data) == 0;
|
||||
my ($pktlen, $resid, $restype) = unpack("VVV", $data);
|
||||
recv($sock, $data, $pktlen - 8, 0);
|
||||
return ($resid, $restype, substr($data, 0, $pktlen - 10));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user