Skip to content

Commit

Permalink
Bind to IPv6 ANY by default
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Jan 6, 2017
1 parent ea0893c commit 05de5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/seds_srv.erl
Expand Up @@ -70,7 +70,7 @@ start_link() ->
init([IP, Port]) when Port > 1024 ->
init(IP, Port, []);
init([IP, Port]) ->
Options = [{protocol, udp}, {family, inet}, {type, dgram}] ++ case IP of
Options = [{protocol, udp}, {family, inet6}, {type, dgram}] ++ case IP of
any -> [];
IP -> [{ip, IP}]
end,
Expand All @@ -84,7 +84,7 @@ init([IP, Port]) ->
init(IP, Port, Opt) ->
process_flag(trap_exit, true),

Options = [binary, {active,once}] ++ case IP of
Options = [inet6, binary, {active,once}] ++ case IP of
any -> [];
IP -> [{ip, IP}]
end ++ Opt,
Expand Down

0 comments on commit 05de5d0

Please sign in to comment.