From 2ce2214d5e43fb625c2f9cde22f791ee097643e1 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Jan 2017 21:27:25 -0500 Subject: Commands can now be locked out of remote sessions Try using sos.shutdown remotely... it won't work. :stuck_out_tongue_winking_eye: --- ShiftOS.WinForms/Applications/Terminal.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ShiftOS.WinForms/Applications') diff --git a/ShiftOS.WinForms/Applications/Terminal.cs b/ShiftOS.WinForms/Applications/Terminal.cs index 2708e85..133858c 100644 --- a/ShiftOS.WinForms/Applications/Terminal.cs +++ b/ShiftOS.WinForms/Applications/Terminal.cs @@ -253,10 +253,11 @@ namespace ShiftOS.WinForms.Applications if (IsInRemoteSystem == true) { - ServerManager.SendMessage("trm_invcmd", $@"{{ - guid = ""{RemoteGuid}"", - command: ""{text4}"" -}}"); + ServerManager.SendMessage("trm_invcmd", JsonConvert.SerializeObject(new + { + guid = RemoteGuid, + command = text4 + })); } else { -- cgit v1.2.3