- Retro-compatible variable key CONTROL_SERVER_ADDRESS was never defined - Old variable key CONTROL_SERVER_PORT was removed in v3.28.0 and no complain so far
17 lines
386 B
Go
17 lines
386 B
Go
package env
|
|
|
|
import (
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
|
)
|
|
|
|
func (s *Source) readControlServer() (controlServer settings.ControlServer, err error) {
|
|
controlServer.Log, err = s.env.BoolPtr("HTTP_CONTROL_SERVER_LOG")
|
|
if err != nil {
|
|
return controlServer, err
|
|
}
|
|
|
|
controlServer.Address = s.env.Get("HTTP_CONTROL_SERVER_ADDRESS")
|
|
|
|
return controlServer, nil
|
|
}
|