diff options
author | Kozlov Dmitry <dima@server> | 2010-11-09 10:34:42 +0300 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-11-09 10:34:42 +0300 |
commit | 1396b7c22bbd319fc22ee420c14cdb69f8d5203c (patch) | |
tree | b4fd2adf4ed9de0ce355b26ca8211880a539e97f /accel-pptpd/radius/req.c | |
parent | 0791b410d7465e2ef70345261d45340e3504381d (diff) | |
download | accel-ppp-1396b7c22bbd319fc22ee420c14cdb69f8d5203c.tar.gz accel-ppp-1396b7c22bbd319fc22ee420c14cdb69f8d5203c.zip |
radius: DM/CoA nas identification by NAS-Identifier or NAS-IP-Address or both
Diffstat (limited to 'accel-pptpd/radius/req.c')
-rw-r--r-- | accel-pptpd/radius/req.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/radius/req.c b/accel-pptpd/radius/req.c index 7526a920..9ac741de 100644 --- a/accel-pptpd/radius/req.c +++ b/accel-pptpd/radius/req.c @@ -54,7 +54,7 @@ struct rad_req_t *rad_req_alloc(struct radius_pd_t *rpd, int code, const char *u if (rad_packet_add_str(req->pack, "NAS-Identifier", conf_nas_identifier, strlen(conf_nas_identifier))) goto out_err; if (conf_nas_ip_address) - if (rad_packet_add_ipaddr(req->pack, "NAS-IP-Address", inet_addr(conf_nas_ip_address))) + if (rad_packet_add_ipaddr(req->pack, "NAS-IP-Address", conf_nas_ip_address)) goto out_err; if (rad_packet_add_int(req->pack, "NAS-Port", rpd->ppp->unit_idx)) goto out_err; |