rlm_rediswho: fix unlang conditional expansion
authorBrian Candler <b.candler@pobox.com>
Fri, 15 Feb 2013 09:30:48 +0000 (09:30 +0000)
committerBrian Candler <b.candler@pobox.com>
Fri, 15 Feb 2013 09:30:48 +0000 (09:30 +0000)
raddb/modules/rediswho

index 470dbad..e16550c 100644 (file)
@@ -14,15 +14,15 @@ rediswho {
        #  an update in this time will be automatically expired.
        expire-time = 86400
 
-       start-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{Acct-Input-Gigawords:-0},%{Acct-Output-Gigawords:-0},%{Acct-Input-Octets:-0},%{Acct-Output-Octets:-0}"
+       start-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
        start-trim =   "LTRIM %{User-Name} 0 ${trim-count}"
        start-expire = "EXPIRE %{User-Name} ${expire-time}"
 
-       alive-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{Acct-Input-Gigawords:-0},%{Acct-Output-Gigawords:-0},%{Acct-Input-Octets:-0},%{Acct-Output-Octets:-0}"
+       alive-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
        alive-trim =   "LTRIM %{User-Name} 0 ${trim-count}"
        alive-expire = "EXPIRE %{User-Name} ${expire-time}"
 
-       stop-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{Acct-Input-Gigawords:-0},%{Acct-Output-Gigawords:-0},%{Acct-Input-Octets:-0},%{Acct-Output-Octets:-0}"
+       stop-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
        stop-trim =   "LTRIM %{User-Name} 0 ${trim-count}"
        stop-expire = "EXPIRE %{User-Name} ${expire-time}"
 }