Update config.go
This commit is contained in:
parent
392cbcfbfb
commit
19fa5270d4
1 changed files with 0 additions and 1 deletions
|
@ -27,7 +27,6 @@ func LoadConfig(path string) (*Config, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Можно переопределить через ENV (если нужно)
|
|
||||||
if envListen := os.Getenv("API_LISTEN_ADDR"); envListen != "" {
|
if envListen := os.Getenv("API_LISTEN_ADDR"); envListen != "" {
|
||||||
cfg.ListenAddr = envListen
|
cfg.ListenAddr = envListen
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue