We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd75b11 commit 45d8a8bCopy full SHA for 45d8a8b
dev-proxy/ProxyEngine.cs
@@ -306,6 +306,13 @@ private void LoadHostNamesFromUrls()
306
hostToWatch = urlToWatchPattern;
307
}
308
309
+ // remove port number if present
310
+ var portPos = hostToWatch.IndexOf(":");
311
+ if (portPos > 0)
312
+ {
313
+ hostToWatch = hostToWatch.Substring(0, portPos);
314
+ }
315
+
316
var hostToWatchRegexString = Regex.Escape(hostToWatch).Replace("\\*", ".*");
317
Regex hostRegex = new Regex($"^{hostToWatchRegexString}$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
318
// don't add the same host twice
0 commit comments