]> git.ipfire.org Git - thirdparty/suricata.git/commit
output-lua: add HttpGetRequestHost callback
authorVictor Julien <victor@inliniac.net>
Fri, 28 Mar 2014 16:24:22 +0000 (17:24 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 15 Aug 2014 11:58:26 +0000 (13:58 +0200)
commit8360b707e88abca5dafaa8a571600a343fcbc48e
treeff6d958feb9198216dfd78819472868d89bd9219
parenta234a335ac0688d549097fcafbc2380d3cd5932a
output-lua: add HttpGetRequestHost callback

Get the host from libhtp's tx->request_hostname, which can either be
the host portion of the url or the host portion of the Host header.

Example:

    http_host = HttpGetRequestHost()
    if http_host == nil then
        http_host = "<hostname unknown>"
    end
src/output-lua-http.c