mirror of
https://github.com/3proxy/3proxy.git
synced 2026-07-01 13:45:16 +00:00
Support for Framed-IP-Address / Framed-IPv6-Address in RADIUS server's reply
This commit is contained in:
parent
bfe7e89bd0
commit
7b4a34f6fc
2 changed files with 15 additions and 3 deletions
|
|
@ -632,10 +632,22 @@ int radauth(struct clientparam * param){
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!vendor && attr[0] == PW_REPLY_MESSAGE) {
|
||||
else if (!vendor && attr[0] == PW_REPLY_MESSAGE) {
|
||||
memcpy(buf, attr+2, attr[1]-2);
|
||||
buf[attr[1]-2]=0;
|
||||
}
|
||||
|
||||
else if (!vendor && attr[0] == PW_FRAMED_IP_ADDRESS && attr[1] == 6) {
|
||||
*SAFAMILY(¶m->sinsl) = AF_INET;
|
||||
memcpy(SAADDR(¶m->sinsl), attr+2, 4);
|
||||
}
|
||||
|
||||
else if (!vendor && attr[0] == PW_FRAMED_IPV6_ADDRESS && attr[1] == 18) {
|
||||
*SAFAMILY(¶m->sinsl) = AF_INET6;
|
||||
memcpy(SAADDR(¶m->sinsl), attr+2, 16);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
else if (vendor == SANDY && attr[0] == SANDY_MAIL_MAILBOX) {
|
||||
memcpy (p->drop_name, attr + 2, attr[1] - 2);
|
||||
|
|
@ -675,4 +687,4 @@ CLEANRET:
|
|||
return res;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
#define VERSION "3proxy-0.9-devel"
|
||||
#define BUILDDATE "160518000524"
|
||||
#define BUILDDATE "161220233959"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue