Skip to content

Commit 5d997a8

Browse files
committed
docs: Update README.md description [skip ci]
1 parent fe65afb commit 5d997a8

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ app.MapHealthChecks("/healthz").RequireLocalPortFiltering(allowPort: 5105);
102102
You can use additional middleware conditionally based on the local port:
103103

104104
```csharp
105-
app.UseWhen(context => context.Connection.LocalPort == 5099,
105+
app.UseWhen(context => context.Connection.LocalPort != 5105,
106106
appBuilder => appBuilder.UseHttpsRedirection());
107-
108107
```
109108

110109
## Contribution

sample/LocalPortFilteringDemo/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
app.UseSwagger();
1313
app.UseSwaggerUI();
14-
app.UseWhen(context => context.Connection.LocalPort == 5099,
14+
app.UseWhen(context => context.Connection.LocalPort != 5105,
1515
appBuilder => appBuilder.UseHttpsRedirection());
1616
app.UseAuthorization();
1717
app.UseLocalPortFiltering();

0 commit comments

Comments
 (0)