Modify: change Unix
to UnixSocket
in config section
This commit is contained in:
parent
746aa3e8ef
commit
59d50b1b98
1 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ type ssl struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type unix struct {
|
type unix struct {
|
||||||
Listen string
|
Listen string
|
||||||
}
|
}
|
||||||
|
|
||||||
// slave 作为slave存储端配置
|
// slave 作为slave存储端配置
|
||||||
|
@ -122,15 +122,15 @@ func Init(path string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sections := map[string]interface{}{
|
sections := map[string]interface{}{
|
||||||
"Database": DatabaseConfig,
|
"Database": DatabaseConfig,
|
||||||
"System": SystemConfig,
|
"System": SystemConfig,
|
||||||
"SSL": SSLConfig,
|
"SSL": SSLConfig,
|
||||||
"Unix": UnixConfig,
|
"UnixSocket": UnixConfig,
|
||||||
"Captcha": CaptchaConfig,
|
"Captcha": CaptchaConfig,
|
||||||
"Redis": RedisConfig,
|
"Redis": RedisConfig,
|
||||||
"Thumbnail": ThumbConfig,
|
"Thumbnail": ThumbConfig,
|
||||||
"CORS": CORSConfig,
|
"CORS": CORSConfig,
|
||||||
"Slave": SlaveConfig,
|
"Slave": SlaveConfig,
|
||||||
}
|
}
|
||||||
for sectionName, sectionStruct := range sections {
|
for sectionName, sectionStruct := range sections {
|
||||||
err = mapSection(sectionName, sectionStruct)
|
err = mapSection(sectionName, sectionStruct)
|
||||||
|
|
Loading…
Add table
Reference in a new issue