From 878639a8d45f2527cc4e783bcdebec2f507f49cc Mon Sep 17 00:00:00 2001
From: Nigel Kukard <nkukard@lbsd.net>
Date: Sun, 13 Nov 2011 14:58:43 +0000
Subject: [PATCH] Added SMRadius-Peer-Address attribute

---
 smradiusd | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/smradiusd b/smradiusd
index 3c5b9b2d..9e6b6960 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
-- 
GitLab