Skip to content

Commit

Permalink
Enable listening on tcp6. See also http://code.google.com/p/mochiweb/…
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Apr 3, 2010
1 parent 11cfb35 commit 16f37ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mochiweb_socket_server.erl
Expand Up @@ -132,7 +132,7 @@ init(State=#mochiweb_socket_server{ip=Ip, port=Port, backlog=Backlog}) ->
Opts = case Ip of
any ->
case ipv6_supported() of % IPv4, and IPv6 if supported
true -> [inet, inet6 | BaseOpts];
true -> [inet6, inet | BaseOpts];
_ -> BaseOpts
end;
{_, _, _, _} -> % IPv4
Expand Down

0 comments on commit 16f37ee

Please sign in to comment.