mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 06:35:57 -05:00
[conf] Add speaker level option to disable AirPlay 1
This commit is contained in:
parent
9805f03d10
commit
4e122303a1
@ -312,6 +312,9 @@ audio {
|
||||
# AirPlay password
|
||||
# password = "s1kr3t"
|
||||
|
||||
# Disable AirPlay 1 (RAOP)
|
||||
# raop_disable = false
|
||||
|
||||
# Name used in the speaker list, overrides name from the device
|
||||
# nickname = "My speaker name"
|
||||
#}
|
||||
|
@ -160,6 +160,7 @@ static cfg_opt_t sec_airplay[] =
|
||||
CFG_BOOL("permanent", cfg_false, CFGF_NONE),
|
||||
CFG_BOOL("reconnect", cfg_false, CFGF_NODEFAULT),
|
||||
CFG_STR("password", NULL, CFGF_NONE),
|
||||
CFG_BOOL("raop_disable", cfg_false, CFGF_NONE),
|
||||
CFG_STR("nickname", NULL, CFGF_NONE),
|
||||
CFG_END()
|
||||
};
|
||||
|
@ -4431,6 +4431,12 @@ raop_device_cb(const char *name, const char *type, const char *domain, const cha
|
||||
{
|
||||
DPRINTF(E_INFO, L_RAOP, "AirPlay device '%s' disappeared, but set as permanent in config\n", device_name);
|
||||
|
||||
return;
|
||||
}
|
||||
if (devcfg && cfg_getbool(devcfg, "raop_disable"))
|
||||
{
|
||||
DPRINTF(E_LOG, L_RAOP, "Disabling AirPlay 1 (RAOP) for device '%s' as set in config\n", device_name);
|
||||
|
||||
return;
|
||||
}
|
||||
if (devcfg && cfg_getstr(devcfg, "nickname"))
|
||||
|
Loading…
Reference in New Issue
Block a user