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>
lilik-openwrt-22.03
Jan Sembera 10 years ago
committed by Jan Sembera
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() {
[ -n "$server" ] && echo "server $server" >> "$CFGFILE" [ -n "$server" ] && echo "server $server" >> "$CFGFILE"
[ -n "$protocol" ] && echo "protocol $protocol" >> "$CFGFILE" [ -n "$protocol" ] && echo "protocol $protocol" >> "$CFGFILE"
[ -n "$tunnelid" ] && echo "tunnel_id $tunnelid" >> "$CFGFILE" [ -n "$tunnelid" ] && echo "tunnel_id $tunnelid" >> "$CFGFILE"
[ -n "$requiretls" ] && echo "requiretls $requiretls" >> "$CFGFILE"
[ "$requiretls" == 1 ] && echo "requiretls true" >> "$CFGFILE"
[ "$nat" == 1 ] && echo "behindnat true" >> "$CFGFILE" [ "$nat" == 1 ] && echo "behindnat true" >> "$CFGFILE"
[ "$heartbeat" == 1 ] && echo "makebeats true" >> "$CFGFILE" [ "$heartbeat" == 1 ] && echo "makebeats true" >> "$CFGFILE"
[ "$verbose" == 1 ] && echo "verbose true" >> "$CFGFILE" [ "$verbose" == 1 ] && echo "verbose true" >> "$CFGFILE"


Loading…
Cancel
Save