Convert old option useXForwardedForIP into trustedProxies (#559)

environments/ppa-mbqj77/deployments/1
Clément Oudot 13 years ago
parent 081adce03b
commit c490cfa874
  1. 7
      lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm

@ -19,7 +19,7 @@ use Config::IniFiles;
#inherits Lemonldap::NG::Common::Conf::SOAP
#inherits Lemonldap::NG::Common::Conf::LDAP
our $VERSION = '1.2.2';
our $VERSION = '1.3.0';
our $msg;
our $iniObj;
@ -178,6 +178,11 @@ sub getConf {
$msg .= "Bad key: $@. \n";
return $r;
}
# Convert old option useXForwardedForIP into trustedProxies
if ( $r->{useXForwardedForIP} == 1 ) {
$r->{trustedProxies} = '*';
}
return $r;
}
}

Loading…
Cancel
Save