Browse Source

aiccu: fix requiretls option handling

requiretls is a boolean value in aiccu config that only accepts true and
false as values, not "1" or "0" that UCI provides.

Signed-off-by: Jan Sembera <jsembera@google.com>
Jan Sembera 9 years ago
parent
commit
5f1006cb20
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ipv6/aiccu/files/aiccu.sh

+ 1
- 1
ipv6/aiccu/files/aiccu.sh View File

@@ -36,7 +36,7 @@ proto_aiccu_setup() {
36 36
 	[ -n "$server" ] && echo "server $server" >> "$CFGFILE"
37 37
 	[ -n "$protocol" ] && echo "protocol $protocol" >> "$CFGFILE"
38 38
 	[ -n "$tunnelid" ] && echo "tunnel_id $tunnelid" >> "$CFGFILE"
39
-	[ -n "$requiretls" ] && echo "requiretls $requiretls" >> "$CFGFILE"
39
+	[ "$requiretls" == 1 ] && echo "requiretls true" >> "$CFGFILE"
40 40
 	[ "$nat" == 1 ] && echo "behindnat true" >> "$CFGFILE"
41 41
 	[ "$heartbeat" == 1 ] && echo "makebeats true" >> "$CFGFILE"
42 42
 	[ "$verbose" == 1 ] && echo "verbose true" >> "$CFGFILE"