File 2381-inets-start-ssl-by-default.patch of Package erlang

From ea2c52373f315e8bf5c228f29c82ebc495298648 Mon Sep 17 00:00:00 2001
From: Kiko Fernandez-Reyes <kiko@erlang.org>
Date: Thu, 24 Aug 2023 13:06:28 +0200
Subject: [PATCH 1/2] inets: start ssl by default

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
---
 lib/inets/src/inets_app/inets.erl | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/lib/inets/src/inets_app/inets.erl b/lib/inets/src/inets_app/inets.erl
index 99f3ba233c..1ae331bb58 100644
--- a/lib/inets/src/inets_app/inets.erl
+++ b/lib/inets/src/inets_app/inets.erl
@@ -47,11 +47,12 @@
 %% 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) -> 
-    application:start(inets, Type).
+start(Type) ->
+    application:start(inets, Type),
+    application:ensure_all_started(ssl).
 
 
 %%--------------------------------------------------------------------
@@ -92,7 +93,7 @@ start(Service, ServiceConfig, How) ->
 %%
 %% Description: Stops the inets application.
 %%--------------------------------------------------------------------
-stop() -> 
+stop() ->
     application:stop(inets).
 
 
-- 
2.35.3

openSUSE Build Service is sponsored by