4 Jul
2007
4 Jul
'07
1:33 a.m.
Hugh Messenger wrote:
I'm using the latest and greatest 2.0.0 HEAD.
If I wrap an 'if' statement round something (in this case a query in mysql_dialup.conf), any config items seem to get blown away.
You can't. "if" is a processing directive that is valid only when packets are being processed. The configuration items are parsed once when the server starts, and don't change after that.
So for instance:
It would be very nice to be able to do that, but it would also be very difficult to implement. The solution is to add a layer of indirection: authorize_reply_query = "%{control:Tmp-String-0}" Then, while processing the request, set: update control { Tmp-String-0 = "..." } That *should* work, I think. Alan DeKok.