From: Nick Porter Date: Tue, 21 Oct 2025 15:49:16 +0000 (+0100) Subject: Use current xlats and syntax X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc92c533454a3dafc6fa9d4c09939fdf609e7a8d;p=thirdparty%2Ffreeradius-server.git Use current xlats and syntax --- diff --git a/raddb/sites-available/coa-relay b/raddb/sites-available/coa-relay index 0f2f1e7810d..90fe184b71d 100644 --- a/raddb/sites-available/coa-relay +++ b/raddb/sites-available/coa-relay @@ -149,16 +149,16 @@ server coa { # if ("%str.split(control.user-session, '|')") { - foreach control.user-session { + foreach session (control.user-session) { # # Send an update for each session we find. # - if ("%{Foreach-Variable-0}" =~ /([^#]*)#(.*)/) { + if (session =~ /([^#]*)#(.*)/) { # NAS-IP-Address - control.NAS-IP-Address := "%{1}" + control.NAS-IP-Address := %regex.match(1) # Acct-Session-Id - control.Acct-Session-Id := "%{2}" + control.Acct-Session-Id := %regex.match(2) subrequest ::CoA-Request { # @@ -175,7 +175,7 @@ server coa { # # Some NASs want these, others don't # - request.Event-Timestamp := "%l" + request.Event-Timestamp := %time.request() request.Message-Authenticator := 0x00 #