Retrocompatiblity with EXTRA_SUBNETS key

This commit is contained in:
Quentin McGaw
2020-10-29 23:32:15 +00:00
parent db64dea664
commit 58da55da1e
4 changed files with 17 additions and 2 deletions

View File

@@ -159,3 +159,10 @@ func (r *reader) GetVPNSP() (vpnServiceProvider models.VPNProvider, err error) {
func (r *reader) GetVersionInformation() (enabled bool, err error) {
return r.envParams.GetOnOff("VERSION_INFORMATION", libparams.Default("on"))
}
func (r *reader) onRetroActive(oldKey, newKey string) {
r.logger.Warn(
"You are using the old environment variable %s, please consider changing it to %s",
oldKey, newKey,
)
}