From 1f99001cd273f5f2ee837b9124b39d16c9e801a1 Mon Sep 17 00:00:00 2001 From: div0 Date: Mon, 25 May 2009 15:36:13 +0000 Subject: [PATCH] srcon: compatible protocol change git-svn-id: svn://svn.icculus.org/nexuiz/trunk@6770 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- server/rcon.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/rcon.pl b/server/rcon.pl index c8ea21bff..58a41cb94 100755 --- a/server/rcon.pl +++ b/server/rcon.pl @@ -409,7 +409,7 @@ sub send($$$) 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"); } -- 2.39.2