We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa03381 commit 9087a96Copy full SHA for 9087a96
1 file changed
src/Auth/Source/Radius.php
@@ -157,11 +157,7 @@ protected function login(
157
$radius->setIncludeMessageAuthenticator();
158
159
$httpUtils = new Utils\HTTP();
160
- $radius->setNasIpAddress($_SERVER['SERVER_ADDR'] ?: $httpUtils->getSelfHost());
161
-
162
- if ($this->nasIdentifier !== null) {
163
- $radius->setAttribute((string)self::RADIUS_NAS_IDENTIFIER, $this->nasIdentifier);
164
- }
+ $radius->setAttribute((string)self::RADIUS_NAS_IDENTIFIER, $this->nasIdentifier ?: $httpUtils->getSelfHost());
165
166
if ($this->realm !== null) {
167
$radius->setRadiusSuffix('@' . $this->realm);
0 commit comments