mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-28 05:04:16 -05:00
[misc] New net_peer_address_is_trusted with cfg set default to "lan"
New default for "trusted_networks" = "lan". This will check peer addresses against the addresses/netmasks of the interfaces to establish whether the peer is local. Fixes #1754
This commit is contained in:
@@ -150,7 +150,7 @@ artworkapi_request(struct httpd_request *hreq)
|
||||
{
|
||||
int status_code;
|
||||
|
||||
if (!httpd_admin_check_auth(hreq))
|
||||
if (!httpd_request_is_authorized(hreq))
|
||||
return;
|
||||
|
||||
if (!hreq->handler)
|
||||
|
||||
Reference in New Issue
Block a user