diff --git a/smradiusd b/smradiusd index 3c5b9b2da72371c865dff39133f8efc3c6a31c1e..9e6b6960f8d5df9dff33516d6c1e8d2cebc86002 100755 --- a/smradiusd +++ b/smradiusd @@ -1002,6 +1002,8 @@ sub process_request { foreach my $attr ($pkt->attributes) { $authAttributes->{$attr} = $pkt->rawattr($attr); } + # Peer address + $authAttributes->{'SMRadius-Peer-Address'} = $server->{'peeraddr'}; # Loop with attributes we got from the user foreach my $attrName (keys %{$user->{'Attributes'}}) { # Loop with operators