summaryrefslogtreecommitdiff
path: root/source/sv_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sv_main.c')
-rw-r--r--source/sv_main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/sv_main.c b/source/sv_main.c
index 928ba4d..7fd1361 100644
--- a/source/sv_main.c
+++ b/source/sv_main.c
@@ -618,9 +618,11 @@ static void SVC_DirectConnect( void ) {
}
}
- // cap maximum message length
- if( net_maxmsglen->integer > 0 && maxlength > net_maxmsglen->integer ) {
- maxlength = net_maxmsglen->integer;
+ if( !NET_IsLocalAddress( &net_from ) ) {
+ // cap maximum message length for real connections
+ if( net_maxmsglen->integer > 0 && maxlength > net_maxmsglen->integer ) {
+ maxlength = net_maxmsglen->integer;
+ }
}
if( protocol == PROTOCOL_VERSION_R1Q2 ) {
@@ -969,7 +971,7 @@ static void SVC_RemoteCommand( void ) {
SV_BeginRedirect( RD_PACKET );
- Cmd_ExecuteString( string );
+ Cmd_ExecuteString( &cmd_buffer, string );
Com_EndRedirect();
}