mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Remove the WCFPublishMetadata config option, make it always on
This commit is contained in:
@@ -105,9 +105,6 @@ namespace ArchiSteamFarm {
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
internal readonly ushort WCFPort = DefaultWCFPort;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
internal readonly bool WCFPublishMetadata = false;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
internal readonly bool Statistics = true;
|
||||
|
||||
|
||||
@@ -89,15 +89,12 @@ namespace ArchiSteamFarm {
|
||||
|
||||
Logging.LogGenericInfo("Starting WCF server...");
|
||||
ServiceHost = new ServiceHost(typeof(WCF), new Uri(URL));
|
||||
if (Program.GlobalConfig.WCFPublishMetadata)
|
||||
ServiceHost.Description.Behaviors.Add(new ServiceMetadataBehavior
|
||||
{
|
||||
ServiceHost.Description.Behaviors.Add(new ServiceMetadataBehavior
|
||||
{
|
||||
HttpGetEnabled = true
|
||||
});
|
||||
ServiceHost.AddServiceEndpoint(ServiceMetadataBehavior.MexContractName,
|
||||
MetadataExchangeBindings.CreateMexHttpBinding(), "mex");
|
||||
}
|
||||
HttpGetEnabled = true
|
||||
});
|
||||
ServiceHost.AddServiceEndpoint(ServiceMetadataBehavior.MexContractName,
|
||||
MetadataExchangeBindings.CreateMexHttpBinding(), "mex");
|
||||
ServiceHost.AddServiceEndpoint(typeof(IWCF), new BasicHttpBinding(), string.Empty);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user