mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 16:11:05 +01:00
Fix interop not using InteropConstants
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user