Fix trm handshake accept

This commit is contained in:
Michael 2017-01-21 19:10:58 -05:00
parent e78caeaeff
commit 84be879805
2 changed files with 4 additions and 3 deletions

View file

@ -294,9 +294,9 @@ Contents:
}));
break;
case "trm_handshake_accept":
if(args["guid"] != null)
if(args["guid"] != null && args["target"] != null)
{
server.DispatchTo(new Guid(msg.GUID), new NetObject("hold_it", new ServerMessage
server.DispatchTo(new Guid(args["target"] as string), new NetObject("hold_it", new ServerMessage
{
Name = "trm_handshake_guid",
GUID = args["guid"] as string

View file

@ -279,7 +279,8 @@ namespace ShiftOS.Engine
{
ForwardGUID = guid;
ServerManager.SendMessage("trm_handshake_accept", $@"{{
guid: ""{ServerManager.thisGuid}""
guid: ""{ServerManager.thisGuid}"",
target: ""{guid}""
}}");
IsForwardingConsoleWrites = true;