Skip to content

Commit 5cec000

Browse files
Excludes excluded URLs from hosts to watch. Closes #1026 (#1028)
1 parent 63d04c7 commit 5cec000

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dev-proxy/ProxyEngine.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ private void LoadHostNamesFromUrls()
291291
{
292292
foreach (var urlToWatch in _urlsToWatch)
293293
{
294+
if (urlToWatch.Exclude)
295+
{
296+
continue;
297+
}
298+
294299
// extract host from the URL
295300
string urlToWatchPattern = Regex.Unescape(urlToWatch.Url.ToString()).Replace(".*", "*");
296301
string hostToWatch;

0 commit comments

Comments
 (0)