diff --git a/OpenRA.Game/Support/LaunchArguments.cs b/OpenRA.Game/Support/LaunchArguments.cs index 97c6c2cfb3..634245d1f3 100644 --- a/OpenRA.Game/Support/LaunchArguments.cs +++ b/OpenRA.Game/Support/LaunchArguments.cs @@ -43,7 +43,7 @@ namespace OpenRA connect = Connect; if (!string.IsNullOrEmpty(URI)) - connect = URI.Replace("openra://", "").TrimEnd('/'); + connect = URI.Substring(URI.IndexOf("://", System.StringComparison.Ordinal) + 3).TrimEnd('/'); return connect; }