On 2010-01-12 23:02, Willy Tarreau wrote:
On Tue, Jan 12, 2010 at 10:05:47PM +0100, Krzysztof Piotr Oledzki wrote:
Subject: [MINOR] acl: add fe_id/so_id to match frontend's and socket's id

applied.

+fe_id<integer>
+  Applies to the fronted's id. Can be used in backends to check from which
+  frontend it was called.

I was wondering if it could also be useful to have "fe_name" and simply
return the backend's name for more readable configs.
frontend's?

Yes that would require
a string match, but in some situations it might be desirable (eg: check all
names beginning with "ext_").

Since you're probably using features such as fe_id, do you think the name
might be helpful ?

I have a dynamically generated config with automatically assigned and resolved ids based on primary keys from sql tables, but in case of manually created configs it might be indeed very useful.

Best regasrds,

                                Krzysztof Olędzki

Reply via email to