1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-13 16:48:27 -05:00

rcon command formatted to work in linux

fixes to work with mono
This commit is contained in:
RaidMax
2018-04-07 14:49:00 -05:00
parent f61b693582
commit 0db93be91f
9 changed files with 30 additions and 73 deletions

View File

@ -1,6 +1,7 @@
using SharedLibrary.Exceptions;
using SharedLibrary.Interfaces;
using System;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
@ -180,7 +181,7 @@ namespace SharedLibrary.RCon
break;
}
byte[] payload = Encoding.Default.GetBytes(queryString);
byte[] payload = queryString.Select(Convert.ToByte).ToArray();
retrySend:
try