Minor tweaks
- don't sanitize xss messages in chat history - give a much larger grace period for timeouts
This commit is contained in:
parent
43504db0a5
commit
dd05a60cf9
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ public class User
|
|||
this.socket = socket;
|
||||
this._ip = ip;
|
||||
tokenSource = new CancellationTokenSource();
|
||||
timeoutTimer = new Timer(3000);
|
||||
timeoutTimer = new Timer(10000);
|
||||
timeoutTimer.Elapsed += async (sender, args) => await TimeoutCallback();
|
||||
timeoutTimer.AutoReset = false;
|
||||
timeoutTimer.Start();
|
||||
|
|
|
@ -162,7 +162,7 @@ public class VM
|
|||
else
|
||||
await u.SendChat(user.Username!, messageSanitized);
|
||||
}
|
||||
ChatHistory.PushBack(new ChatMessage {Username = user.Username!, Message = messageSanitized});
|
||||
ChatHistory.PushBack(new ChatMessage {Username = user.Username!, Message = xss ? message : messageSanitized});
|
||||
}
|
||||
|
||||
public async Task SendMouse(int x, int y, int mask)
|
||||
|
|
Loading…
Reference in a new issue