Aug 30, 2012; 10:23
Jolle Carlestam
client_ip does not compare with wildcards
According to the online reference:
[client_ip] returns the IP address of the current client.
The [client_ip] method can be used in a conditional expression compared with a string that contains wildcards.
[If(Client_IP == '10.*.*.*')] ... [/If] will return True for any clients that are on machines in the 10.x.x.x subnet.
But testing this on my local machine with a tighter set of wildcards fails
client_ip
br
client_ip == '127.*.*.*'
br
client_ip == '127.0.*.*'
br
client_ip == '127.0.0.*'
br
client_ip == '127.0.0.1'
->
127.0.0.1
true
false
false
true
Usually a working subnet is more narrow than what the present comparison deals with. Can this be worked around or fixed somehow?
HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 30, 2012; 12:16
Ke Carlton
Re: client_ip does not compare with wildcards