Skip to content

Commit

Permalink
inets: start ssl by default
Browse files Browse the repository at this point in the history
inets will start ssl by default together with its dependencies. the main
reason for this change is that https is almost standard nowadays and
inets:start/0/1/2/3 is a utility function that can benefit from not having to
manually pass new options to allow redirects from http to https
  • Loading branch information
kikofernandez committed Aug 25, 2023
1 parent 0db74ed commit bc97027
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/inets/src/inets_app/inets.erl
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@
%% Description: Starts the inets application. Default type
%% is temporary. see application(3)
%%--------------------------------------------------------------------
start() ->
application:start(inets).
start() ->
application:ensure_all_started([inets, ssl]).

start(Type) ->
start(Type) ->
application:ensure_all_started(ssl),
application:start(inets, Type).


Expand Down Expand Up @@ -92,7 +93,7 @@ start(Service, ServiceConfig, How) ->
%%
%% Description: Stops the inets application.
%%--------------------------------------------------------------------
stop() ->
stop() ->
application:stop(inets).


Expand Down

0 comments on commit bc97027

Please sign in to comment.