Skip to content

Commit

Permalink
feat: cowboy also listens on IPv6 (#19)
Browse files Browse the repository at this point in the history
This PR launches the cowboy server binding to IPv4 and IPv6 on the same port.
  • Loading branch information
DXTimer authored Dec 10, 2024
1 parent 1b21d20 commit da0f8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erldns_admin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ init([]) ->
]
),

{ok, _} = cowboy:start_clear(?MODULE, [{port, port()}], #{env => #{dispatch => Dispatch}}),
{ok, _} = cowboy:start_clear(?MODULE, [inet, inet6, {port, port()}], #{env => #{dispatch => Dispatch}}),

{ok, #state{}}.

Expand Down

0 comments on commit da0f8ee

Please sign in to comment.