From 59d50b1b98c7d0370a3cb44ec950bd946945491d Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Mon, 26 Oct 2020 15:42:18 +0800 Subject: [PATCH] Modify: change `Unix` to `UnixSocket` in config section --- pkg/conf/conf.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/conf/conf.go b/pkg/conf/conf.go index 43f2481..dbec5df 100644 --- a/pkg/conf/conf.go +++ b/pkg/conf/conf.go @@ -34,7 +34,7 @@ type ssl struct { } type unix struct { - Listen string + Listen string } // slave 作为slave存储端配置 @@ -122,15 +122,15 @@ func Init(path string) { } sections := map[string]interface{}{ - "Database": DatabaseConfig, - "System": SystemConfig, - "SSL": SSLConfig, - "Unix": UnixConfig, - "Captcha": CaptchaConfig, - "Redis": RedisConfig, - "Thumbnail": ThumbConfig, - "CORS": CORSConfig, - "Slave": SlaveConfig, + "Database": DatabaseConfig, + "System": SystemConfig, + "SSL": SSLConfig, + "UnixSocket": UnixConfig, + "Captcha": CaptchaConfig, + "Redis": RedisConfig, + "Thumbnail": ThumbConfig, + "CORS": CORSConfig, + "Slave": SlaveConfig, } for sectionName, sectionStruct := range sections { err = mapSection(sectionName, sectionStruct)