summaryrefslogtreecommitdiff
path: root/accel-pppd/radius
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-03-18 21:24:09 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-03-18 21:24:09 +0400
commitc50b3502ef776740f7ca7f640536f4c22869a34b (patch)
tree2d6c9c503ef1f8f62b6df67b634c2565e09af3c3 /accel-pppd/radius
parentb7c7e8390b523c678c6483d3aa88875d45e85b0d (diff)
downloadaccel-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.c2
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;