File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ socket= hep_udp:127.0.0.1:6061 # change the listening IP
40
40
<itemizedlist >
41
41
<listitem >
42
42
<para >
43
- <emphasis >None</emphasis >.
43
+ <emphasis >tls_mgm</emphasis > - optional, only if a TLS based
44
+ HEP listener is defined in the script.
44
45
</para >
45
46
</listitem >
46
47
</itemizedlist >
Original file line number Diff line number Diff line change @@ -199,6 +199,11 @@ static int mod_init(void)
199
199
return -1 ;
200
200
}
201
201
202
+ if (protos [PROTO_HEP_TLS ].listeners && load_tls_mgm_api (& tls_mgm_api )!= 0 ) {
203
+ LM_DBG ("failed to find TLS API - is tls_mgm module loaded?\n" );
204
+ return -1 ;
205
+ }
206
+
202
207
if (payload_compression ) {
203
208
load_compression =
204
209
(load_compression_f )find_export ("load_compression" , 0 );
@@ -304,10 +309,6 @@ static int proto_hep_init_tcp(struct proto_info* pi)
304
309
305
310
static int proto_hep_init_tls (struct proto_info * pi )
306
311
{
307
- if (load_tls_mgm_api (& tls_mgm_api ) != 0 ) {
308
- LM_DBG ("failed to find TLS API - is tls_mgm module loaded?\n" );
309
- return -1 ;
310
- }
311
312
312
313
pi -> id = PROTO_HEP_TLS ;
313
314
pi -> name = "hep_tls" ;
You can’t perform that action at this time.
0 commit comments