diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-11-13 15:42:49 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-11-13 15:42:49 -0600 |
| commit | a9179b4c607eee93da59519bdb8764d69986c594 (patch) | |
| tree | 9ee3f1b0272f37d3bb096280ea9a76451b64fe30 /src | |
| parent | ae41ce1935dc05684e259eb51f189c3412f189bc (diff) | |
| download | slskd-a9179b4c607eee93da59519bdb8764d69986c594.tar.gz | |
Network -> Relay
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/State.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Core/State.cs b/src/slskd/Core/State.cs index adcb56ed..76253501 100644 --- a/src/slskd/Core/State.cs +++ b/src/slskd/Core/State.cs @@ -35,7 +35,7 @@ namespace slskd public bool PendingReconnect { get; init; } public bool PendingRestart { get; init; } public ServerState Server { get; init; } = new ServerState(); - public NetworkState Network { get; init; } = new NetworkState(); + public RelayState Relay { get; init; } = new RelayState(); public UserState User { get; init; } = new UserState(); public DistributedNetworkState DistributedNetwork { get; init; } = new DistributedNetworkState(); public ShareState Shares { get; init; } = new ShareState(); @@ -65,14 +65,14 @@ namespace slskd public bool IsTransitioning => State.HasFlag(SoulseekClientStates.Connecting) || State.HasFlag(SoulseekClientStates.Disconnecting) || State.HasFlag(SoulseekClientStates.LoggingIn); } - public record NetworkState + public record RelayState { public OperationMode Mode { get; init; } - public NetworkControllerState Controller { get; init; } = new NetworkControllerState(); + public RelayControllerState Controller { get; init; } = new RelayControllerState(); public IReadOnlyCollection<Agent> Agents { get; init; } = Enumerable.Empty<Agent>().ToList().AsReadOnly(); } - public record NetworkControllerState + public record RelayControllerState { public string Address { get; init; } public RelayClientState State { get; init; } = RelayClientState.Disconnected; |
