docs: new website
This commit is contained in:
@ -23,7 +23,7 @@ func ReadInConfig(configFile string) (*Config, error) {
|
||||
|
||||
inherits := vi.GetString("inherits")
|
||||
|
||||
if len(inherits) != 0 {
|
||||
if inherits != "" {
|
||||
vi = newViper(cpath, inherits)
|
||||
|
||||
if err := vi.ReadInConfig(); err != nil {
|
||||
|
@ -92,7 +92,7 @@ func initConf() (*Config, error) {
|
||||
c.AuthFailBlock = false
|
||||
}
|
||||
|
||||
if len(c.AllowListFile) == 0 {
|
||||
if c.AllowListFile == "" {
|
||||
c.AllowListFile = c.relPath("./allow.list")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user