16 Apr
2022
16 Apr
'22
11:44 a.m.
On Apr 15, 2022, at 8:30 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello , Please could any one provide the unlang syntax to check if the request:user-name is of type ipv4addr or ipv6addr
User-Name is a string. You can use regular expression to see if the string matches an IPv4 or IPv6 address. if (User-Name =~ /regex/) { ... } Alan DeKok.