提交 c50b3502 编写于 作者: D Dmitry Kozlov

radius: assign ipv4 either if gw-ip-address is not specified for non-ppp sessions

上级 b7c7e839
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册