mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
DLNA (#1364)
This commit is contained in:
@@ -30,6 +30,7 @@ func makeConfigResult() *models.ConfigResult {
|
||||
return &models.ConfigResult{
|
||||
General: makeConfigGeneralResult(),
|
||||
Interface: makeConfigInterfaceResult(),
|
||||
Dlna: makeConfigDLNAResult(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,3 +110,14 @@ func makeConfigInterfaceResult() *models.ConfigInterfaceResult {
|
||||
SlideshowDelay: &slideshowDelay,
|
||||
}
|
||||
}
|
||||
|
||||
func makeConfigDLNAResult() *models.ConfigDLNAResult {
|
||||
config := config.GetInstance()
|
||||
|
||||
return &models.ConfigDLNAResult{
|
||||
ServerName: config.GetDLNAServerName(),
|
||||
Enabled: config.GetDLNADefaultEnabled(),
|
||||
WhitelistedIPs: config.GetDLNADefaultIPWhitelist(),
|
||||
Interfaces: config.GetDLNAInterfaces(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user