diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-11-21 15:03:53 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-11-21 15:03:53 -0600 |
| commit | ab15c236a7faddc851d082f5c76c52720a9a3dda (patch) | |
| tree | 1772f2b5de0f917249adefdf8edeeec22e011dc9 /src/slskd/Relay/API/Hubs/RelayHub.cs | |
| parent | ca7476025c3e63b3e2d78ecc601ef3001c3cff84 (diff) | |
| download | slskd-ab15c236a7faddc851d082f5c76c52720a9a3dda.tar.gz | |
rename OperationMode to RelayMode
Diffstat (limited to 'src/slskd/Relay/API/Hubs/RelayHub.cs')
| -rw-r--r-- | src/slskd/Relay/API/Hubs/RelayHub.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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<RelayService>(); private IRelayService Relay { get; } private OptionsAtStartup OptionsAtStartup { get; } - private OperationMode OperationMode => OptionsAtStartup.Relay.Mode.ToEnum<OperationMode>(); + private RelayMode OperationMode => OptionsAtStartup.Relay.Mode.ToEnum<RelayMode>(); private IPAddress RemoteIpAddress => Context.Features.Get<IHttpConnectionFeature>().RemoteIpAddress; /// <summary> @@ -86,7 +86,7 @@ namespace slskd.Relay /// <returns></returns> 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(); |
