diff options
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> |
