From b2210ce2b6f4c13ea77c4c9186f9e7ec648fee96 Mon Sep 17 00:00:00 2001 From: NI Date: Sun, 23 Feb 2020 22:03:31 +0800 Subject: [PATCH] Reconfigure Environment configuration loader as well --- application/configuration/loader_enviro.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/configuration/loader_enviro.go b/application/configuration/loader_enviro.go index 3370128..b57ea6d 100644 --- a/application/configuration/loader_enviro.go +++ b/application/configuration/loader_enviro.go @@ -123,7 +123,7 @@ func Enviro() Loader { } } - return enviroTypeName, Configuration{ + return enviroTypeName, r(Configuration{ HostName: cfg.HostName, SharedKey: cfg.SharedKey, DialTimeout: time.Duration(cfg.DialTimeout) * time.Second, @@ -133,6 +133,6 @@ func Enviro() Loader { Servers: []Server{cfgSer.build()}, Presets: presets, OnlyAllowPresetRemotes: cfg.OnlyAllowPresetRemotes, - }, nil + }), nil } }