File tree Expand file tree Collapse file tree
Modules/ReverseProxy/Provider
Testing/Acceptance/Modules/ReverseProxy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System . Globalization ;
22using System . Net ;
33using System . Net . Http . Headers ;
4+ using System . Net . Sockets ;
45using System . Web ;
56
67using GenHTTP . Api . Content ;
@@ -260,7 +261,14 @@ private static string GetForwarding(Forwarding forwarding)
260261
261262 if ( forwarding . For is not null )
262263 {
263- result . Add ( $ "for={ forwarding . For } ") ;
264+ if ( forwarding . For . AddressFamily == AddressFamily . InterNetworkV6 )
265+ {
266+ result . Add ( $ "for=[{ forwarding . For } ]") ;
267+ }
268+ else
269+ {
270+ result . Add ( $ "for={ forwarding . For } ") ;
271+ }
264272 }
265273
266274 if ( forwarding . Host is not null )
Original file line number Diff line number Diff line change 11using System . Net ;
2+
23using GenHTTP . Api . Content ;
34using GenHTTP . Api . Protocol ;
5+
46using GenHTTP . Modules . IO ;
57using GenHTTP . Modules . Layouting ;
68using GenHTTP . Modules . ReverseProxy ;
9+
10+
711using Microsoft . VisualStudio . TestTools . UnitTesting ;
12+
813using Cookie = GenHTTP . Api . Protocol . Cookie ;
914
1015namespace GenHTTP . Testing . Acceptance . Modules . ReverseProxy ;
@@ -266,7 +271,6 @@ public async Task TestBadGateway(TestEngine engine)
266271 await response . AssertStatusAsync ( HttpStatusCode . BadGateway ) ;
267272 }
268273
269-
270274 [ TestMethod ]
271275 [ MultiEngineTest ]
272276 public async Task TestCompression ( TestEngine engine )
You can’t perform that action at this time.
0 commit comments