MINOR: sample: Add strcmp sample converter
authorTim Duesterhus <tim@bastelstu.be>
Fri, 27 Apr 2018 19:18:45 +0000 (21:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Apr 2018 05:03:39 +0000 (07:03 +0200)
commitca097c16a89a576fca5981487afefc69c1193db0
treecbc9cb23e21462bdfaba3f5847614232884638c2
parent5bc9972ed836517924eea91954d255d317a53418
MINOR: sample: Add strcmp sample converter

This converter supplements the existing string matching by allowing
strings to be converted to a variable.

Example usage:

  http-request set-var(txn.host) hdr(host)
  # Check whether the client is attempting domain fronting.
  acl ssl_sni_http_host_match ssl_fc_sni,strcmp(txn.host) eq 0
doc/configuration.txt
src/sample.c