From ab15c236a7faddc851d082f5c76c52720a9a3dda Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 21 Nov 2022 15:03:53 -0600 Subject: rename OperationMode to RelayMode --- src/slskd/Relay/API/Hubs/RelayHub.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/slskd/Relay/API/Hubs') diff --git a/src/slskd/Relay/API/Hubs/RelayHub.cs b/src/slskd/Relay/API/Hubs/RelayHub.cs index 99cd3839..6b091a39 100644 --- a/src/slskd/Relay/API/Hubs/RelayHub.cs +++ b/src/slskd/Relay/API/Hubs/RelayHub.cs @@ -77,7 +77,7 @@ namespace slskd.Relay private ILogger Log { get; } = Serilog.Log.ForContext(); private IRelayService Relay { get; } private OptionsAtStartup OptionsAtStartup { get; } - private OperationMode OperationMode => OptionsAtStartup.Relay.Mode.ToEnum(); + private RelayMode OperationMode => OptionsAtStartup.Relay.Mode.ToEnum(); private IPAddress RemoteIpAddress => Context.Features.Get().RemoteIpAddress; /// @@ -86,7 +86,7 @@ namespace slskd.Relay /// public override async Task OnConnectedAsync() { - if (!OptionsAtStartup.Relay.Enabled || !new[] { OperationMode.Controller, OperationMode.Debug }.Contains(OperationMode)) + if (!OptionsAtStartup.Relay.Enabled || !new[] { RelayMode.Controller, RelayMode.Debug }.Contains(OperationMode)) { Log.Debug("Agent connection {Id} from {IP} aborted; Relay is not enabled, or is not in Controller mode", Context.ConnectionId, RemoteIpAddress); Context.Abort(); -- cgit v1.2.3