diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-03-14 08:17:41 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-03-14 08:17:41 -0500 |
| commit | ba76c59f806a45f77c6179dfc4166d7a75bd843b (patch) | |
| tree | 007c435d509667686f29123156f44c14a08b8fbd /src | |
| parent | e76c22000ae02e01cefd21d17e06817c1eeb78a4 (diff) | |
| download | slskd-ba76c59f806a45f77c6179dfc4166d7a75bd843b.tar.gz | |
only include usernames for distributed parent and children
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 4 | ||||
| -rw-r--r-- | src/slskd/State.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 4ae5ea6d..72478bde 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -506,10 +506,10 @@ namespace slskd BranchRoot = e.BranchRoot, CanAcceptChildren = e.CanAcceptChildren, ChildLimit = e.ChildLimit, - Children = e.Children, + Children = e.Children.Select(c => c.Username).ToList().AsReadOnly(), HasParent = e.HasParent, IsBranchRoot = e.IsBranchRoot, - Parent = e.Parent, + Parent = e.Parent.Username, }, }); } diff --git a/src/slskd/State.cs b/src/slskd/State.cs index 71807728..0daa5d76 100644 --- a/src/slskd/State.cs +++ b/src/slskd/State.cs @@ -69,10 +69,10 @@ namespace slskd public string BranchRoot { get; init; } public bool CanAcceptChildren { get; init; } public int ChildLimit { get; init; } - public IReadOnlyCollection<(string Username, IPEndPoint IPEndPoint)> Children { get; init; } + public IReadOnlyCollection<string> Children { get; init; } public bool HasParent { get; init; } public bool IsBranchRoot { get; init; } - public (string Username, IPEndPoint IPEndPoint) Parent { get; init; } + public string Parent { get; init; } } /// <summary> |
