From 74858759d243c18a2c43ba392e62f2a9f84376ef Mon Sep 17 00:00:00 2001 From: GuerraMorgan <35589850+GuerraMorgan@users.noreply.github.com> Date: Sat, 13 Jun 2020 21:05:05 +0800 Subject: [PATCH] Update conf.go --- pkg/conf/conf.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/conf/conf.go b/pkg/conf/conf.go index d68cb0a0..43f24814 100644 --- a/pkg/conf/conf.go +++ b/pkg/conf/conf.go @@ -33,6 +33,10 @@ type ssl struct { Listen string `validate:"required"` } +type unix struct { + Listen string +} + // slave 作为slave存储端配置 type slave struct { Secret string `validate:"omitempty,gte=64"` @@ -121,6 +125,7 @@ func Init(path string) { "Database": DatabaseConfig, "System": SystemConfig, "SSL": SSLConfig, + "Unix": UnixConfig, "Captcha": CaptchaConfig, "Redis": RedisConfig, "Thumbnail": ThumbConfig,