[nexuiz-commits] r6770 - trunk/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon May 25 11:36:13 EDT 2009
Author: div0
Date: 2009-05-25 11:36:13 -0400 (Mon, 25 May 2009)
New Revision: 6770
Modified:
trunk/server/rcon.pl
Log:
srcon: compatible protocol change
Modified: trunk/server/rcon.pl
===================================================================
--- trunk/server/rcon.pl 2009-05-24 17:41:28 UTC (rev 6769)
+++ trunk/server/rcon.pl 2009-05-25 15:36:13 UTC (rev 6770)
@@ -409,7 +409,7 @@
my ($self, $line, $nothrottle) = @_;
if($self->{secure})
{
- my $t = sprintf "%ld", time();
+ my $t = sprintf "%ld.%06d", time(), int rand 1000000;
my $key = Digest::HMAC::hmac("$t $line", $self->{password}, \&Digest::MD4::md4);
return $self->{connector}->send("\377\377\377\377srcon HMAC-MD4 TIME $key $t $line");
}
More information about the nexuiz-commits
mailing list