Browse Source

jicofo: fix ENABLE_SCTP type

Saúl Ibarra Corretgé 4 years ago
parent
commit
6c4dce1
1 changed files with 2 additions and 3 deletions
  1. 2 3
      jicofo/rootfs/defaults/jicofo.conf

+ 2 - 3
jicofo/rootfs/defaults/jicofo.conf

@@ -1,4 +1,5 @@
 {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }}
 {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }}
+{{ $ENABLE_SCTP := .Env.ENABLE_SCTP | default "0" | toBool }}
 {{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }}
 {{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }}
 {{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool }}
 {{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool }}
 
 
@@ -116,11 +117,9 @@ jicofo {
       id = "{{ .Env.JICOFO_SHORT_ID | default "1" }}"
       id = "{{ .Env.JICOFO_SHORT_ID | default "1" }}"
     }
     }
 
 
-    {{ if .Env.ENABLE_SCTP }}
     sctp {
     sctp {
-      enabled = "{{ .Env.ENABLE_SCTP }}"
+      enabled = {{ $ENABLE_SCTP }}
     }
     }
-    {{ end }}
 
 
     xmpp {
     xmpp {
       client {
       client {