Fix interop not using InteropConstants

This commit is contained in:
Jordan Brown
2018-08-07 20:19:49 -04:00
parent 2440f9cc37
commit e50a1ab44d
@@ -8,6 +8,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Host.Components.Watchdog;
using Tgstation.Server.Host.Core;
using Tgstation.Server.Host.IO;
@@ -16,11 +17,6 @@ namespace Tgstation.Server.Host.Components
/// <inheritdoc />
sealed class InstanceManager : IInstanceManager, IHostedService, IInteropRegistrar, IDisposable
{
/// <summary>
/// HTTP GET query key for interop access identifiers
/// </summary>
const string AccessIdentifierQueryKey = "access";
/// <summary>
/// The <see cref="IInstanceFactory"/> for the <see cref="InstanceManager"/>
/// </summary>
@@ -222,7 +218,7 @@ namespace Tgstation.Server.Host.Components
if (query == null)
throw new ArgumentNullException(nameof(query));
if (!query.TryGetValue(AccessIdentifierQueryKey, out StringValues values))
if (!query.TryGetValue(InteropConstants.DMInteropAccessIdentifier, out StringValues values))
return null;
var accessIdentifier = values.FirstOrDefault();
if (accessIdentifier == default)