diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/SingleSession.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/SingleSession.pm index bd0fbd7b7..ec424d0dd 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/SingleSession.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/SingleSession.pm @@ -57,7 +57,7 @@ sub run { if ( $self->conf->{singleUserByIP} ) { my $sessions = $self->module->searchOn( $moduleOptions, 'ipAddr', - $req->sessionInfo->ipAddr ); + $req->sessionInfo->{ipAddr} ); foreach my $id ( keys %$sessions ) { next if ( $req->id eq $id ); my $session = $self->p->getApacheSession($id) or next;