diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-03-18 21:24:09 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-03-18 21:24:09 +0400 |
commit | c50b3502ef776740f7ca7f640536f4c22869a34b (patch) | |
tree | 2d6c9c503ef1f8f62b6df67b634c2565e09af3c3 /accel-pppd/radius | |
parent | b7c7e8390b523c678c6483d3aa88875d45e85b0d (diff) | |
download | accel-ppp-c50b3502ef776740f7ca7f640536f4c22869a34b.tar.gz accel-ppp-c50b3502ef776740f7ca7f640536f4c22869a34b.zip |
radius: assign ipv4 either if gw-ip-address is not specified for non-ppp sessions
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r-- | accel-pppd/radius/radius.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index bae5876f..2092625c 100644 --- a/accel-pppd/radius/radius.c +++ b/accel-pppd/radius/radius.c @@ -88,7 +88,7 @@ int rad_proc_attrs(struct rad_req_t *req) switch(attr->attr->id) { case Framed_IP_Address: - if (!conf_gw_ip_address) + if (!conf_gw_ip_address && req->rpd->ses->ctrl->ppp) log_ppp_warn("radius: gw-ip-address not specified, cann't assign IP address...\n"); else { req->rpd->ipv4_addr.peer_addr = attr->val.ipaddr; |