This repository was archived by the owner on Mar 19, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +0
-25
lines changed
Microsoft.AspNet.Server.WebListener
Microsoft.Net.Http.Server/RequestProcessing
Microsoft.AspNet.Server.WebListener.FunctionalTests
Microsoft.Net.Http.Server.FunctionalTests Expand file tree Collapse file tree 5 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ public static async Task Main(string[] args)
30
30
31
31
// Request
32
32
// context.Request.ProtocolVersion
33
- // context.Request.IsLocal
34
33
// context.Request.Headers
35
34
// context.Request.Method
36
35
// context.Request.Body
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ internal class FeatureContext :
65
65
private IPAddress _localIpAddress ;
66
66
private int ? _remotePort ;
67
67
private int ? _localPort ;
68
- private bool ? _isLocal ;
69
68
private string _requestId ;
70
69
private X509Certificate2 _clientCert ;
71
70
private ClaimsPrincipal _user ;
@@ -219,19 +218,6 @@ string IHttpRequestFeature.Scheme
219
218
set { _scheme = value ; }
220
219
}
221
220
222
- bool IHttpConnectionFeature . IsLocal
223
- {
224
- get
225
- {
226
- if ( _isLocal == null )
227
- {
228
- _isLocal = Request . IsLocal ;
229
- }
230
- return _isLocal . Value ;
231
- }
232
- set { _isLocal = value ; }
233
- }
234
-
235
221
IPAddress IHttpConnectionFeature . LocalIpAddress
236
222
{
237
223
get
Original file line number Diff line number Diff line change @@ -294,14 +294,6 @@ public string Path
294
294
get { return _path ; }
295
295
}
296
296
297
- public bool IsLocal
298
- {
299
- get
300
- {
301
- return LocalEndPoint . GetIPAddress ( ) . Equals ( RemoteEndPoint . GetIPAddress ( ) ) ;
302
- }
303
- }
304
-
305
297
public bool IsSecureConnection
306
298
{
307
299
get
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ public async Task Request_SimpleGet_Success()
59
59
Assert . NotEqual ( 0 , connectionInfo . RemotePort ) ;
60
60
Assert . Equal ( "::1" , connectionInfo . LocalIpAddress . ToString ( ) ) ;
61
61
Assert . NotEqual ( 0 , connectionInfo . LocalPort ) ;
62
- Assert . True ( connectionInfo . IsLocal ) ;
63
62
64
63
// Trace identifier
65
64
var requestIdentifierFeature = httpContext . Features . Get < IHttpRequestIdentifierFeature > ( ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ public async Task Request_SimpleGet_Success()
39
39
Assert . NotEqual ( 0 , request . RemotePort ) ;
40
40
Assert . Equal ( "::1" , request . LocalIpAddress . ToString ( ) ) ;
41
41
Assert . NotEqual ( 0 , request . LocalPort ) ;
42
- Assert . True ( request . IsLocal ) ;
43
42
44
43
// Note: Response keys are validated in the ResponseTests
45
44
You can’t perform that action at this time.
0 commit comments