security inject appName

This commit is contained in:
mr
2026-02-04 09:38:45 +01:00
parent ef916fe2d9
commit d9f646aac2
2 changed files with 6 additions and 7 deletions

View File

@@ -139,7 +139,7 @@ func InitDaemon(appName string) {
// create a temporary console logger for init
logs.SetLogger(logs.CreateLogger("main"))
// Load the right config file
o := GetConfLoader()
o := GetConfLoader(appName)
// resources.InitNative()
// feed the library with the loaded config
SetConfig(
@@ -272,8 +272,8 @@ func GetConfig() *config.Config {
* The configuration loader will give priority to the local file over the default file
*/
func GetConfLoader() *onion.Onion {
return config.GetConfLoader()
func GetConfLoader(appName string) *onion.Onion {
return config.GetConfLoader(appName)
}
type Request struct {