Skip to content

Commit c8295ca

Browse files
committed
fixed: uname was called on wrong object in _invokeDisconnect method.
1 parent caefa88 commit c8295ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Account/Account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private function _makeShell()
142142

143143
private function _invokeDisconnect($session)
144144
{
145-
$exec = "echo \" User-Name={$this->plan->uname}, Framed-IP-Address={$session->framedipaddress} \" ".
145+
$exec = "echo \" User-Name={$this->plan->user->uname}, Framed-IP-Address={$session->framedipaddress} \" ".
146146
"| radclient {$session->nasipaddress}:3799 disconnect {$session->secret}";
147147
(new Process($exec) )->start();
148148
}

0 commit comments

Comments
 (0)