Skip to content

Commit

Permalink
fix connamara#571: unexpected null from GetProxy
Browse files Browse the repository at this point in the history
Thanks to mkoca & mcmillab in the Github issue.
connamara#571 (comment)
  • Loading branch information
gbirchmeier committed Feb 28, 2020
1 parent 653abba commit a1cd714
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions QuickFIXn/Transport/StreamFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ private static Socket CreateTunnelThruProxy(string destIP, int destPort)
}

Uri proxyUri = webProxy.GetProxy(destUri);
if (proxyUri == null)
return null;

IPAddress[] proxyEntry = Dns.GetHostAddresses(proxyUri.Host);
int iPort = proxyUri.Port;
IPAddress address = proxyEntry.First(a => a.AddressFamily == AddressFamily.InterNetwork);
Expand Down
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ What's New

### NEXT VERSION:
* (patch) #505 - Fix ObjectDisposedException when SocketInitiator is stopped before connection attempt fails (musashibg)
* (patch) #571 - StreamFactory fix: unexpected null from GetProxy (mkoca & mcmillab)

### v1.9.0:
* (minor) #469 - Add support for NET Standard 2.0 (jhickson)
Expand Down

0 comments on commit a1cd714

Please sign in to comment.