fix: IP address is empty in unix socket mode (#1314)

This commit is contained in:
WeidiDeng
2022-05-24 11:01:00 +08:00
committed by GitHub
parent 3fa1249678
commit 36b310133c
3 changed files with 5 additions and 2 deletions

View File

@@ -35,7 +35,8 @@ type ssl struct {
}
type unix struct {
Listen string
Listen string
ProxyHeader string `validate:"required_with=Listen"`
}
// slave 作为slave存储端配置

View File

@@ -45,7 +45,8 @@ var SSLConfig = &ssl{
}
var UnixConfig = &unix{
Listen: "",
Listen: "",
ProxyHeader: "X-Forwarded-For",
}
var OptionOverwrite = map[string]interface{}{}