22 Aug
2012
22 Aug
'12
11:49 a.m.
sagar naravane <sagar.naravane@gmail.com> writes:
Shouldn't it be
filter f_colo_sj { host("^sj1*"); }; filter f_colo_du { host("^du1*"); }; filter f_colo_da { host("^da1*"); };
It's a regex, so .*, and as far as I remember, no, you don't need to fully match the host, a partial match is fine. So if the beginning matches, the filter will match, and ^sj (or ^sj1) is faster than ^sj1.*, since the regexp engine does not have to process the whole string. (I might be wrong, though, in which case ^sj1.* is the correct one) -- |8]