Update config.go

This commit is contained in:
NikitaR13 2025-01-23 15:35:10 +03:00 committed by GitHub
parent 392cbcfbfb
commit 19fa5270d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,6 @@ func LoadConfig(path string) (*Config, error) {
return nil, err
}
// Можно переопределить через ENV (если нужно)
if envListen := os.Getenv("API_LISTEN_ADDR"); envListen != "" {
cfg.ListenAddr = envListen
}