aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/SsdpDevice.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-09-25 19:21:37 +0200
committerGitHub <noreply@github.com>2021-09-25 19:21:37 +0200
commit2ee3e9e00f62ff8b0139f1273d7666d0f6c549a4 (patch)
tree354f808d6687abcd3b5f862c0cb8c9e4fd754966 /RSSDP/SsdpDevice.cs
parentd81c9a7a8cbab8967bfc66086c6f0f80bf7fc0c2 (diff)
parent4643fd5dcbc6d1a4fbe973efc68d92ca71e3ab3b (diff)
Merge pull request #6590 from jellyfin/dotnet6
Diffstat (limited to 'RSSDP/SsdpDevice.cs')
-rw-r--r--RSSDP/SsdpDevice.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/RSSDP/SsdpDevice.cs b/RSSDP/SsdpDevice.cs
index 4005d836d..c826830f1 100644
--- a/RSSDP/SsdpDevice.cs
+++ b/RSSDP/SsdpDevice.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.Globalization;
using Rssdp.Infrastructure;
namespace Rssdp
@@ -134,11 +135,13 @@ namespace Rssdp
{
get
{
- return String.Format("urn:{0}:{3}:{1}:{2}",
- this.DeviceTypeNamespace ?? String.Empty,
- this.DeviceType ?? String.Empty,
- this.DeviceVersion,
- this.DeviceClass ?? "device");
+ return String.Format(
+ CultureInfo.InvariantCulture,
+ "urn:{0}:{3}:{1}:{2}",
+ this.DeviceTypeNamespace ?? String.Empty,
+ this.DeviceType ?? String.Empty,
+ this.DeviceVersion,
+ this.DeviceClass ?? "device");
}
}