From f477b79fa23f6d81ac92343d169250b78762ba30 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 16 Dec 2016 14:55:33 +0100 Subject: [PATCH] Fix cross-OS WCF incompatibility Mono really struggles with this and can't respond to windows clients --- ArchiSteamFarm/WCF.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/WCF.cs b/ArchiSteamFarm/WCF.cs index 1e71aeb06..2df124414 100644 --- a/ArchiSteamFarm/WCF.cs +++ b/ArchiSteamFarm/WCF.cs @@ -95,7 +95,7 @@ namespace ArchiSteamFarm { } if (Client == null) { - Client = new Client(new NetTcpBinding(), new EndpointAddress(URL)); + Client = new Client(new NetTcpBinding { Security = { Mode = SecurityMode.None } }, new EndpointAddress(URL)); } return Client.HandleCommand(input); @@ -110,7 +110,7 @@ namespace ArchiSteamFarm { try { ServiceHost = new ServiceHost(typeof(WCF), new Uri(URL)); - ServiceHost.AddServiceEndpoint(typeof(IWCF), new NetTcpBinding(), string.Empty); + ServiceHost.AddServiceEndpoint(typeof(IWCF), new NetTcpBinding { Security = { Mode = SecurityMode.None } }, string.Empty); ServiceHost.Open(); ASF.ArchiLogger.LogGenericInfo("WCF server ready!");