[misc] Add utility network functions, incl configurable addr binding

Also make misc.c/h a bit less messy.
This commit is contained in:
ejurgensen
2021-02-26 19:23:00 +01:00
parent 3673aa7215
commit 7871d71a9c
9 changed files with 678 additions and 428 deletions

View File

@@ -295,7 +295,7 @@ rsp_request_authorize(struct httpd_request *hreq)
char *passwd;
int ret;
if (peer_address_is_trusted(hreq->peer_address))
if (net_peer_address_is_trusted(hreq->peer_address))
return 0;
passwd = cfg_getstr(cfg_getsec(cfg, "library"), "password");