]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon: support AF_UNIX sockets in the http module
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 23 Apr 2019 12:23:43 +0000 (14:23 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 3 Jun 2019 13:43:04 +0000 (15:43 +0200)
commit38e37d9f9de5251e288cbdb049654401c93772f9
tree2d366e9f81183bcf5bc952cc74e1bf60cad42aa8
parent81d78f8f3bd186d1467f4cfc3212848cc8231e0b
daemon: support AF_UNIX sockets in the http module

There's no support for the "dns" and "tls" kinds (for now).

Tested briefly:
> modules = { 'http' }
> net.listen('/tmp/kresd-socket', nil, { kind = 'webmgmt' })
$ socat TCP-LISTEN:5555,reuseaddr,fork UNIX-CLIENT:/tmp/kresd-socket
$ xdg-open http://127.0.0.1:5555
NEWS
daemon/io.c
daemon/main.c
daemon/network.c
daemon/network.h
lib/utils.c
lib/utils.h