diff options
| author | Michael <[email protected]> | 2017-01-21 21:27:25 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-01-21 21:27:25 -0500 |
| commit | 2ce2214d5e43fb625c2f9cde22f791ee097643e1 (patch) | |
| tree | c7b8908f604af0cb9bbf5a63cf41bebeb2fe8881 /ShiftOS.WinForms/Applications | |
| parent | 19b7f5b98330335f51efd52b0f744e6174e987fe (diff) | |
| download | shiftos_thereturn-2ce2214d5e43fb625c2f9cde22f791ee097643e1.tar.gz shiftos_thereturn-2ce2214d5e43fb625c2f9cde22f791ee097643e1.tar.bz2 shiftos_thereturn-2ce2214d5e43fb625c2f9cde22f791ee097643e1.zip | |
Commands can now be locked out of remote sessions
Try using sos.shutdown remotely... it won't work.
:stuck_out_tongue_winking_eye:
Diffstat (limited to 'ShiftOS.WinForms/Applications')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Terminal.cs | 9 |
1 files changed, 5 insertions, 4 deletions
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 { |
