You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotnet/src/Client.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,7 @@ public CopilotClient(CopilotClientOptions? options = null)
177
177
thrownewArgumentException("GitHubToken and UseLoggedInUser cannot be combined with RuntimeConnection.ForUri (the existing runtime manages its own auth).",nameof(options));
178
178
}
179
179
varparsed=ParseRuntimeUrl(uri.Url);
180
-
_optionsHost=parsed.Host;
180
+
_optionsHost=parsed.Host.Trim('[',']');
181
181
_optionsPort=parsed.Port;
182
182
break;
183
183
@@ -308,7 +308,7 @@ private static RuntimeConnection ResolveDefaultConnection(CopilotClientOptions o
308
308
/// <summary>
309
309
/// Parses a runtime URL into a URI with host and port.
0 commit comments