diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-11-13 15:27:58 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-11-13 15:27:58 -0600 |
| commit | a1d113528e575a828350917d5ac0c53851d4aca5 (patch) | |
| tree | 709ce232fccd6bd4e2553d1565796923b9ab145e /src | |
| parent | 5f2923973dc2fa5b65a602c3f30cf7c5448eda0a (diff) | |
| download | slskd-a1d113528e575a828350917d5ac0c53851d4aca5.tar.gz | |
rename Network to Relay
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/State.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Program.cs | 4 | ||||
| -rw-r--r-- | src/slskd/Relay/API/Controllers/RelayController.cs (renamed from src/slskd/Network/API/Controllers/NetworkController.cs) | 30 | ||||
| -rw-r--r-- | src/slskd/Relay/API/Hubs/RelayHub.cs (renamed from src/slskd/Network/API/Hubs/NetworkHub.cs) | 52 | ||||
| -rw-r--r-- | src/slskd/Relay/DummyRelayClient.cs (renamed from src/slskd/Network/DummyNetworkClient.cs) | 4 | ||||
| -rw-r--r-- | src/slskd/Relay/RelayClient.cs (renamed from src/slskd/Network/NetworkClient.cs) | 34 | ||||
| -rw-r--r-- | src/slskd/Relay/RelayClientState.cs (renamed from src/slskd/Network/NetworkClientState.cs) | 6 | ||||
| -rw-r--r-- | src/slskd/Relay/RelayService.cs (renamed from src/slskd/Network/NetworkService.cs) | 30 | ||||
| -rw-r--r-- | src/slskd/Relay/Types/Agent.cs (renamed from src/slskd/Network/Types/Agent.cs) | 2 | ||||
| -rw-r--r-- | src/slskd/Relay/Types/OperationMode.cs (renamed from src/slskd/Network/Types/OperationMode.cs) | 2 |
10 files changed, 83 insertions, 83 deletions
diff --git a/src/slskd/Core/State.cs b/src/slskd/Core/State.cs index df670893..1881eb52 100644 --- a/src/slskd/Core/State.cs +++ b/src/slskd/Core/State.cs @@ -75,7 +75,7 @@ namespace slskd public record NetworkControllerState { public string Address { get; init; } - public NetworkClientState State { get; init; } = NetworkClientState.Disconnected; + public RelayClientState State { get; init; } = RelayClientState.Disconnected; } public record UserState diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 72288853..2a498e16 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -543,7 +543,7 @@ namespace slskd services.AddSingleton<IDownloadService, DownloadService>(); services.AddSingleton<IUploadService, UploadService>(); - services.AddSingleton<INetworkService, NetworkService>(); + services.AddSingleton<INetworkService, RelayService>(); services.AddSingleton<IFTPClientFactory, FTPClientFactory>(); services.AddSingleton<IFTPService, FTPService>(); @@ -819,7 +819,7 @@ namespace slskd endpoints.MapHub<ApplicationHub>("/hub/application"); endpoints.MapHub<LogsHub>("/hub/logs"); endpoints.MapHub<SearchHub>("/hub/search"); - endpoints.MapHub<NetworkHub>("/hub/agents"); + endpoints.MapHub<RelayHub>("/hub/agents"); endpoints.MapControllers(); endpoints.MapHealthChecks("/health"); diff --git a/src/slskd/Network/API/Controllers/NetworkController.cs b/src/slskd/Relay/API/Controllers/RelayController.cs index eb0c01e3..8db29662 100644 --- a/src/slskd/Network/API/Controllers/NetworkController.cs +++ b/src/slskd/Relay/API/Controllers/RelayController.cs @@ -1,4 +1,4 @@ -// <copyright file="NetworkController.cs" company="slskd Team"> +// <copyright file="RelayController.cs" company="slskd Team"> // Copyright (c) slskd Team. All rights reserved. // // This program is free software: you can redistribute it and/or modify @@ -15,7 +15,7 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd.Network +namespace slskd.Relay { using System; using System.Collections.Generic; @@ -31,21 +31,21 @@ namespace slskd.Network using slskd.Shares; /// <summary> - /// Network. + /// Relay. /// </summary> [Route("api/v{version:apiVersion}/[controller]")] [ApiVersion("0")] [ApiController] - public class NetworkController : ControllerBase + public class RelayController : ControllerBase { - public NetworkController( - INetworkService networkService) + public RelayController( + IRelayService relayService) { - Network = networkService; + Relay = relayService; } - private ILogger Log { get; } = Serilog.Log.ForContext<NetworkController>(); - private INetworkService Network { get; } + private ILogger Log { get; } = Serilog.Log.ForContext<RelayController>(); + private IRelayService Relay { get; } /// <summary> /// Uploads a file. @@ -102,7 +102,7 @@ namespace slskd.Network return BadRequest(); } - if (!Network.RegisteredAgents.Any(a => a.Name == agentName)) + if (!Relay.RegisteredAgents.Any(a => a.Name == agentName)) { return Unauthorized(); } @@ -113,7 +113,7 @@ namespace slskd.Network // provide the encrypted value as the credential with the request. the validation below verifies a bunch of // things, including that the encrypted value matches the expected value. the goal here is to ensure that the // caller is the same caller that received the request, and that the caller knows the shared secret. - if (!Network.TryValidateFileStreamResponseCredential(token: guid, agentName, filename, credential)) + if (!Relay.TryValidateFileStreamResponseCredential(token: guid, agentName, filename, credential)) { Log.Warning("Failed to authenticate file upload token {Token} from a caller claiming to be agent {Agent}", agentName); return Unauthorized(); @@ -123,7 +123,7 @@ namespace slskd.Network // pass the stream back to the network service, which will in turn pass it to the upload service, and use it to // feed data into the remote upload. await this call, it will complete when the upload is complete, one way or the other. - await Network.HandleFileStreamResponse(agentName, id: guid, stream); + await Relay.HandleFileStreamResponse(agentName, id: guid, stream); Log.Information("File upload of {Filename} ({Token}) from agent {Agent} complete", filename, token, agentName); return Ok(); @@ -173,12 +173,12 @@ namespace slskd.Network return BadRequest(); } - if (!Network.RegisteredAgents.Any(a => a.Name == agentName)) + if (!Relay.RegisteredAgents.Any(a => a.Name == agentName)) { return Unauthorized(); } - if (!Network.TryValidateShareUploadCredential(token: guid, agentName, credential)) + if (!Relay.TryValidateShareUploadCredential(token: guid, agentName, credential)) { Log.Warning("Failed to authenticate share upload from caller claiming to be agent {Agent}"); return Unauthorized(); @@ -198,7 +198,7 @@ namespace slskd.Network Log.Debug("Upload of share from {Agent} to {Filename} complete", agentName, temp); - await Network.HandleShareUpload(agentName, id: guid, shares, temp); + await Relay.HandleShareUpload(agentName, id: guid, shares, temp); return Ok(); } diff --git a/src/slskd/Network/API/Hubs/NetworkHub.cs b/src/slskd/Relay/API/Hubs/RelayHub.cs index 9a54dde5..ac3bc78a 100644 --- a/src/slskd/Network/API/Hubs/NetworkHub.cs +++ b/src/slskd/Relay/API/Hubs/RelayHub.cs @@ -1,4 +1,4 @@ -// <copyright file="NetworkHub.cs" company="slskd Team"> +// <copyright file="RelayHub.cs" company="slskd Team"> // Copyright (c) slskd Team. All rights reserved. // // This program is free software: you can redistribute it and/or modify @@ -15,7 +15,7 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd.Network +namespace slskd.Relay { using System; using System.Threading.Tasks; @@ -25,9 +25,9 @@ namespace slskd.Network using Serilog; /// <summary> - /// Methods for the <see cref="NetworkHub"/>. + /// Methods for the <see cref="RelayHub"/>. /// </summary> - public interface INetworkHub + public interface IRelayHub { /// <summary> /// Sends an authentication challenge token to the newly connected agent. @@ -54,23 +54,23 @@ namespace slskd.Network } /// <summary> - /// The network SignalR hub. + /// The relay SignalR hub. /// </summary> [Authorize] - public class NetworkHub : Hub<INetworkHub> + public class RelayHub : Hub<IRelayHub> { /// <summary> - /// Initializes a new instance of the <see cref="NetworkHub"/> class. + /// Initializes a new instance of the <see cref="RelayHub"/> class. /// </summary> - /// <param name="networkService"></param> - public NetworkHub( - INetworkService networkService) + /// <param name="relayService"></param> + public RelayHub( + IRelayService relayService) { - Network = networkService; + Relay = relayService; } - private ILogger Log { get; } = Serilog.Log.ForContext<NetworkService>(); - private INetworkService Network { get; } + private ILogger Log { get; } = Serilog.Log.ForContext<RelayService>(); + private IRelayService Relay { get; } /// <summary> /// Executed when a new connection is established. @@ -78,7 +78,7 @@ namespace slskd.Network /// <returns></returns> public override async Task OnConnectedAsync() { - var token = Network.GenerateAuthenticationChallengeToken(Context.ConnectionId); + var token = Relay.GenerateAuthenticationChallengeToken(Context.ConnectionId); Log.Information("Agent connection {Id} established. Sending authentication challenge {Token}...", Context.ConnectionId, token); await Clients.Caller.Challenge(token); @@ -91,10 +91,10 @@ namespace slskd.Network /// <returns></returns> public override Task OnDisconnectedAsync(Exception exception) { - if (Network.TryDeregisterAgent(Context.ConnectionId, out var record)) + if (Relay.TryDeregisterAgent(Context.ConnectionId, out var record)) { Log.Warning("Agent {Agent} (connection {Id}) disconnected", record.Agent.Name, Context.ConnectionId); - Network.TryDeregisterAgent(record.Agent.Name, out _); + Relay.TryDeregisterAgent(record.Agent.Name, out _); } return Task.CompletedTask; @@ -108,10 +108,10 @@ namespace slskd.Network /// <exception cref="UnauthorizedAccessException">Thrown when the challenge response is invalid.</exception> public void Login(string agent, string challengeResponse) { - if (!Network.TryValidateAuthenticationCredential(Context.ConnectionId, agent, challengeResponse)) + if (!Relay.TryValidateAuthenticationCredential(Context.ConnectionId, agent, challengeResponse)) { Log.Information("Agent connection {Id} authentication failed", Context.ConnectionId); - Network.TryDeregisterAgent(Context.ConnectionId, out var _); // just in case! + Relay.TryDeregisterAgent(Context.ConnectionId, out var _); // just in case! throw new UnauthorizedAccessException(); } @@ -119,7 +119,7 @@ namespace slskd.Network var record = new Agent { Name = agent, IPAddress = remoteIp }; Log.Information("Agent connection {Id} ({IP}) authenticated as agent {Agent}", Context.ConnectionId, remoteIp, agent); - Network.RegisterAgent(Context.ConnectionId, record); + Relay.RegisterAgent(Context.ConnectionId, record); } /// <summary> @@ -129,14 +129,14 @@ namespace slskd.Network /// <exception cref="UnauthorizedAccessException">Thrown when the agent is not fully authenticated.</exception> public Guid BeginShareUpload() { - if (!Network.TryGetAgentRegistration(Context.ConnectionId, out var record)) + if (!Relay.TryGetAgentRegistration(Context.ConnectionId, out var record)) { // this can happen if the agent attempts to upload before logging in Log.Information("Agent connection {Id} requested a share upload token, but is not registered.", Context.ConnectionId); throw new UnauthorizedAccessException(); } - var token = Network.GenerateShareUploadToken(record.Agent.Name); + var token = Relay.GenerateShareUploadToken(record.Agent.Name); Log.Information("Agent {Agent} (connection {Id}) requested share upload token {Token}", record.Agent.Name, record.ConnectionId, token); return token; } @@ -149,7 +149,7 @@ namespace slskd.Network /// <exception cref="UnauthorizedAccessException">Thrown when the agent is not fully authenticated.</exception> public void NotifyFileUploadFailed(Guid id, Exception exception) { - if (!Network.TryGetAgentRegistration(Context.ConnectionId, out var record)) + if (!Relay.TryGetAgentRegistration(Context.ConnectionId, out var record)) { Log.Warning("Agent connection {Id} attempted to report a failed upload, but is not registered.", Context.ConnectionId); throw new UnauthorizedAccessException(); @@ -157,11 +157,11 @@ namespace slskd.Network Log.Warning("Agent {Agent} (connection {ConnectionId}) reported upload failure for {Id}: {Message}", id, exception.Message); - Network.NotifyFileStreamException(id, exception); + Relay.NotifyFileStreamException(id, exception); } /// <summary> - /// Returns the response to a call to <see cref="INetworkHub.RequestFileInfo"/>. + /// Returns the response to a call to <see cref="IRelayHub.RequestFileInfo"/>. /// </summary> /// <param name="id">The unique identifier for the request.</param> /// <param name="exists">A value indicating whether the requested file exists on the agent's filesystem.</param> @@ -169,7 +169,7 @@ namespace slskd.Network /// <exception cref="UnauthorizedAccessException">Thrown when the agent is not fully authenticated.</exception> public void ReturnFileInfo(Guid id, bool exists, long length) { - if (!Network.TryGetAgentRegistration(Context.ConnectionId, out var record)) + if (!Relay.TryGetAgentRegistration(Context.ConnectionId, out var record)) { Log.Warning("Agent connection {Id} attempted to return file information, but is not registered.", Context.ConnectionId); throw new UnauthorizedAccessException(); @@ -177,7 +177,7 @@ namespace slskd.Network Log.Information("Agent {Agent} (connection {ConnectionId}) returned file info for {Id}; exists: {Exists}, length: {Length}", record.Agent.Name, Context.ConnectionId, id, exists, length); - Network.HandleFileInfoResponse(record.Agent.Name, id, (exists, length)); + Relay.HandleFileInfoResponse(record.Agent.Name, id, (exists, length)); } } }
\ No newline at end of file diff --git a/src/slskd/Network/DummyNetworkClient.cs b/src/slskd/Relay/DummyRelayClient.cs index f592f492..67140281 100644 --- a/src/slskd/Network/DummyNetworkClient.cs +++ b/src/slskd/Relay/DummyRelayClient.cs @@ -15,12 +15,12 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd.Network +namespace slskd.Relay { using System.Threading; using System.Threading.Tasks; - public class DummyNetworkClient : INetworkClient + public class DummyRelayClient : INetworkClient { public IStateMonitor<NetworkClientState> StateMonitor => new ManagedState<NetworkClientState>(); diff --git a/src/slskd/Network/NetworkClient.cs b/src/slskd/Relay/RelayClient.cs index 207494ff..fa9f65bc 100644 --- a/src/slskd/Network/NetworkClient.cs +++ b/src/slskd/Relay/RelayClient.cs @@ -37,7 +37,7 @@ namespace slskd.Network /// <summary> /// Gets the client state. /// </summary> - IStateMonitor<NetworkClientState> StateMonitor { get; } + IStateMonitor<RelayClientState> StateMonitor { get; } /// <summary> /// Starts the client and connects to the controller. @@ -63,15 +63,15 @@ namespace slskd.Network /// <summary> /// Network client (agent). /// </summary> - public class NetworkClient : INetworkClient + public class RelayClient : INetworkClient { /// <summary> - /// Initializes a new instance of the <see cref="NetworkClient"/> class. + /// Initializes a new instance of the <see cref="RelayClient"/> class. /// </summary> /// <param name="shareService"></param> /// <param name="optionsMonitor"></param> /// <param name="httpClientFactory"></param> - public NetworkClient( + public RelayClient( IShareService shareService, IOptionsMonitor<Options> optionsMonitor, IHttpClientFactory httpClientFactory) @@ -91,9 +91,9 @@ namespace slskd.Network /// <summary> /// Gets the client state. /// </summary> - public IStateMonitor<NetworkClientState> StateMonitor { get; } + public IStateMonitor<RelayClientState> StateMonitor { get; } - private ManagedState<NetworkClientState> State { get; } = new(); + private ManagedState<RelayClientState> State { get; } = new(); private IShareService Shares { get; } private SemaphoreSlim SyncRoot { get; } = new SemaphoreSlim(1, 1); private string LastOptionsHash { get; set; } @@ -102,7 +102,7 @@ namespace slskd.Network private HubConnection HubConnection { get; set; } private bool StartRequested { get; set; } private CancellationTokenSource StartCancellationTokenSource { get; set; } - private ILogger Log { get; } = Serilog.Log.ForContext<NetworkClient>(); + private ILogger Log { get; } = Serilog.Log.ForContext<RelayClient>(); private bool LoggedIn { get; set; } private TaskCompletionSource LoggedInTaskCompletionSource { get; set; } private bool Disposed { get; set; } @@ -194,12 +194,12 @@ namespace slskd.Network return UploadSharesAsync(); } - private NetworkClientState TranslateState(HubConnectionState hub) => hub switch + private RelayClientState TranslateState(HubConnectionState hub) => hub switch { - HubConnectionState.Disconnected => NetworkClientState.Disconnected, - HubConnectionState.Connected => NetworkClientState.Connected, - HubConnectionState.Connecting => NetworkClientState.Connecting, - HubConnectionState.Reconnecting => NetworkClientState.Reconnecting, + HubConnectionState.Disconnected => RelayClientState.Disconnected, + HubConnectionState.Connected => RelayClientState.Connected, + HubConnectionState.Connecting => RelayClientState.Connecting, + HubConnectionState.Reconnecting => RelayClientState.Reconnecting, _ => throw new ArgumentException($"Unexpected HubConnectionState {hub}"), }; @@ -221,7 +221,7 @@ namespace slskd.Network Log.Debug("Share backup successful"); Log.Debug("Requesting share upload token..."); - var token = await HubConnection.InvokeAsync<Guid>(nameof(NetworkHub.BeginShareUpload)); + var token = await HubConnection.InvokeAsync<Guid>(nameof(RelayHub.BeginShareUpload)); Log.Debug("Share upload token {Token}", token); var stream = new FileStream(temp, FileMode.Open, FileAccess.Read); @@ -313,7 +313,7 @@ namespace slskd.Network Log.Error(ex, "Failed to handle file request: {Message}", ex.Message); // report the failure to the controller. this avoids a failure due to timeout. - await HubConnection.InvokeAsync(nameof(NetworkHub.NotifyFileUploadFailed), token); + await HubConnection.InvokeAsync(nameof(RelayHub.NotifyFileUploadFailed), token); } }); @@ -330,12 +330,12 @@ namespace slskd.Network var localFileInfo = new FileInfo(localFilename); - await HubConnection.InvokeAsync(nameof(NetworkHub.ReturnFileInfo), id, localFileInfo.Exists, localFileInfo.Length); + await HubConnection.InvokeAsync(nameof(RelayHub.ReturnFileInfo), id, localFileInfo.Exists, localFileInfo.Length); } catch (Exception ex) { Log.Error(ex, "Failed to handle file info request: {Message}", ex.Message); - await HubConnection.InvokeAsync(nameof(NetworkHub.ReturnFileInfo), id, false, 0); + await HubConnection.InvokeAsync(nameof(RelayHub.ReturnFileInfo), id, false, 0); } } @@ -351,7 +351,7 @@ namespace slskd.Network var response = ComputeCredential(challengeToken); Log.Debug("Logging in..."); - await HubConnection.InvokeAsync(nameof(NetworkHub.Login), agent, response); + await HubConnection.InvokeAsync(nameof(RelayHub.Login), agent, response); Log.Debug("Login succeeded."); LoggedInTaskCompletionSource?.TrySetResult(); } diff --git a/src/slskd/Network/NetworkClientState.cs b/src/slskd/Relay/RelayClientState.cs index ba1c1369..def25411 100644 --- a/src/slskd/Network/NetworkClientState.cs +++ b/src/slskd/Relay/RelayClientState.cs @@ -1,4 +1,4 @@ -// <copyright file="NetworkClientState.cs" company="slskd Team"> +// <copyright file="RelayClientState.cs" company="slskd Team"> // Copyright (c) slskd Team. All rights reserved. // // This program is free software: you can redistribute it and/or modify @@ -15,9 +15,9 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd.Network +namespace slskd.Relay { - public enum NetworkClientState + public enum RelayClientState { Disconnected, Connected, diff --git a/src/slskd/Network/NetworkService.cs b/src/slskd/Relay/RelayService.cs index a0bbe85f..5dc41a84 100644 --- a/src/slskd/Network/NetworkService.cs +++ b/src/slskd/Relay/RelayService.cs @@ -1,4 +1,4 @@ -// <copyright file="NetworkService.cs" company="slskd Team"> +// <copyright file="RelayService.cs" company="slskd Team"> // Copyright (c) slskd Team. All rights reserved. // // This program is free software: you can redistribute it and/or modify @@ -17,7 +17,7 @@ using Microsoft.Extensions.Options; -namespace slskd.Network +namespace slskd.Relay { using System; using System.Collections.Concurrent; @@ -35,14 +35,14 @@ namespace slskd.Network using slskd.Shares; /// <summary> - /// Handles network (controller/agent) interactions. + /// Handles relay (controller/agent) interactions. /// </summary> - public interface INetworkService + public interface IRelayService { /// <summary> - /// Gets the network client (agent). + /// Gets the relay client (agent). /// </summary> - INetworkClient Client { get; } + IRelayClient Client { get; } /// <summary> /// Gets the collection of registered Agents. @@ -245,18 +245,18 @@ namespace slskd.Network } /// <summary> - /// Handles network (controller/agent) interactions. + /// Handles relay (controller/agent) interactions. /// </summary> - public class NetworkService : INetworkService + public class RelayService : IRelayService { - public NetworkService( + public RelayService( IWaiter waiter, IShareService shareService, IShareRepositoryFactory shareRepositoryFactory, IOptionsMonitor<Options> optionsMonitor, - IHubContext<NetworkHub, INetworkHub> networkHub, + IHubContext<RelayHub, IRelayHub> relayHub, IHttpClientFactory httpClientFactory, - INetworkClient networkClient = null) + IRelayClient relayClient = null) { Shares = shareService; ShareRepositoryFactory = shareRepositoryFactory; @@ -264,7 +264,7 @@ namespace slskd.Network NetworkHub = networkHub; // wire up a dummy client so callers don't need to handle nulls - Client = networkClient ?? new DummyNetworkClient(); + Client = networkClient ?? new DummyRelayClient(); StateMonitor = State; @@ -289,9 +289,9 @@ namespace slskd.Network public IStateMonitor<NetworkState> StateMonitor { get; } private IHttpClientFactory HttpClientFactory { get; } - private ILogger Log { get; } = Serilog.Log.ForContext<NetworkService>(); + private ILogger Log { get; } = Serilog.Log.ForContext<RelayService>(); private MemoryCache MemoryCache { get; } = new MemoryCache(new MemoryCacheOptions()); - private IHubContext<NetworkHub, INetworkHub> NetworkHub { get; set; } + private IHubContext<RelayHub, INetworkHub> NetworkHub { get; set; } private IOptionsMonitor<Options> OptionsMonitor { get; } private ConcurrentDictionary<Guid, TaskCompletionSource<(bool Exists, long Length)>> PendingFileInquiryDictionary { get; } = new(); private ConcurrentDictionary<string, (string ConnectionId, Agent Agent)> RegisteredAgentDictionary { get; } = new(); @@ -727,7 +727,7 @@ namespace slskd.Network else { // the controller changed. disconnect and throw away the client and create a new one - Client = new NetworkClient(Shares, OptionsMonitor, HttpClientFactory); + Client = new RelayClient(Shares, OptionsMonitor, HttpClientFactory); Client.StateMonitor.OnChange(clientState => State.SetValue(state => state with { Controller = state.Controller with { State = clientState.Current } })); diff --git a/src/slskd/Network/Types/Agent.cs b/src/slskd/Relay/Types/Agent.cs index 8c392210..3ed1767e 100644 --- a/src/slskd/Network/Types/Agent.cs +++ b/src/slskd/Relay/Types/Agent.cs @@ -15,7 +15,7 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd.Network +namespace slskd.Relay { public record Agent { diff --git a/src/slskd/Network/Types/OperationMode.cs b/src/slskd/Relay/Types/OperationMode.cs index 7503c6c9..4881e4e7 100644 --- a/src/slskd/Network/Types/OperationMode.cs +++ b/src/slskd/Relay/Types/OperationMode.cs @@ -15,7 +15,7 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd.Network +namespace slskd.Relay { /// <summary> /// The network operation mode. |
