Skip to content

Commit

Permalink
0.0.0.0 should match ipv4 any (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
MBoss authored and statianzo committed Jul 15, 2016
1 parent dccee97 commit 9f56c80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Fleck/WebSocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ private IPAddress ParseIPAddress(Uri uri)
{
string ipStr = uri.Host;

if (ipStr == "0.0.0.0" || ipStr == "[0000:0000:0000:0000:0000:0000:0000:0000]")
if (ipStr == "0.0.0.0" ){
return IPAddress.Any;
}else if(ipStr == "[0000:0000:0000:0000:0000:0000:0000:0000]")
{
return IPAddress.IPv6Any;
} else {
Expand Down

0 comments on commit 9f56c80

Please sign in to comment.