mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-24 03:27:46 -05:00
[misc] Add utility network functions, incl configurable addr binding
Also make misc.c/h a bit less messy.
This commit is contained in:
@@ -4511,7 +4511,7 @@ mpd_accept_conn_cb(struct evconnlistener *listener,
|
||||
if (!client_ctx->authenticated)
|
||||
{
|
||||
sockaddr_to_string(address, addr_str, sizeof(addr_str));
|
||||
client_ctx->authenticated = peer_address_is_trusted(addr_str);
|
||||
client_ctx->authenticated = net_peer_address_is_trusted(addr_str);
|
||||
}
|
||||
|
||||
client_ctx->next = mpd_clients;
|
||||
|
||||
Reference in New Issue
Block a user