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
Showing
- NEWS 1 addition, 0 deletionsNEWS
- daemon/io.c 2 additions, 2 deletionsdaemon/io.c
- daemon/main.c 22 additions, 8 deletionsdaemon/main.c
- daemon/network.c 56 additions, 23 deletionsdaemon/network.c
- daemon/network.h 2 additions, 1 deletiondaemon/network.h
- lib/utils.c 35 additions, 18 deletionslib/utils.c
- lib/utils.h 3 additions, 1 deletionlib/utils.h
Please register or sign in to comment