diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Shares/Types/Host.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -37,6 +37,11 @@ namespace slskd.Shares } /// <summary> + /// Gets a value indicating whether this host is the local host. + /// </summary> + public bool IsLocalHost => Name == Program.LocalHostName; + + /// <summary> /// Gets the name of the host. /// </summary> /// <remarks>Corresponds to the configured <see cref="Options.InstanceName"/> of the host, or "local" for the local host.</remarks> |
