From a080cbeb6c1151c4a42ee9a0a8852fd7b2ce3f7e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 29 Oct 2022 13:28:32 -0500 Subject: add IsLocalHost --- src/slskd/Shares/Types/Host.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/slskd/Shares/Types/Host.cs b/src/slskd/Shares/Types/Host.cs index 50302480..726bde67 100644 --- a/src/slskd/Shares/Types/Host.cs +++ b/src/slskd/Shares/Types/Host.cs @@ -36,6 +36,11 @@ namespace slskd.Shares Shares = shares ?? Enumerable.Empty(); } + /// + /// Gets a value indicating whether this host is the local host. + /// + public bool IsLocalHost => Name == Program.LocalHostName; + /// /// Gets the name of the host. /// -- cgit v1.2.3