diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-24 14:54:18 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-24 14:54:18 -0500 |
| commit | b9f758e14dc4f49a55c7ee61fa722ef48ab24a78 (patch) | |
| tree | a6679c8b8308b736a5667d2fc8e6744d75dc469e /RSSDP/SsdpCommunicationsServer.cs | |
| parent | 23070fa67ce11a62a07cd0c65b301218265ce264 (diff) | |
reduce traffic from play to feature
Diffstat (limited to 'RSSDP/SsdpCommunicationsServer.cs')
| -rw-r--r-- | RSSDP/SsdpCommunicationsServer.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs index 97f5ebbd0..c4959c1f2 100644 --- a/RSSDP/SsdpCommunicationsServer.cs +++ b/RSSDP/SsdpCommunicationsServer.cs @@ -454,7 +454,7 @@ namespace Rssdp.Infrastructure } if (responseMessage != null) - OnResponseReceived(responseMessage, endPoint); + OnResponseReceived(responseMessage, endPoint, receivedOnLocalIpAddress); } else { @@ -490,11 +490,14 @@ namespace Rssdp.Infrastructure handlers(this, new RequestReceivedEventArgs(data, remoteEndPoint, receivedOnLocalIpAddress)); } - private void OnResponseReceived(HttpResponseMessage data, IpEndPointInfo endPoint) + private void OnResponseReceived(HttpResponseMessage data, IpEndPointInfo endPoint, IpAddressInfo localIpAddress) { var handlers = this.ResponseReceived; if (handlers != null) - handlers(this, new ResponseReceivedEventArgs(data, endPoint)); + handlers(this, new ResponseReceivedEventArgs(data, endPoint) + { + LocalIpAddress = localIpAddress + }); } #endregion |
