Package: openvpn-auth-radius
Version: 2.1-4
Severity: wishlist
Dear Maintainer,
In our system radius return routes like '10.128.0.0/24'.
This response was prepared several VPN servers than should to register at this
route
and connected party should be the gateway.
I fix the source than if worked correctly for me.
Perhaps it is deemed right in principle.
--- UserAcct.cpp.old 2014-12-16 13:20:37.699467727 +0300
+++ UserAcct.cpp 2014-12-16 13:30:57.367678753 +0300
@@ -699,7 +699,11 @@
strncat(routestring, "/" ,1);
strncat(routestring, framednetmask_cidr, 2);
strncat(routestring, " gw ", 4);
- strncat(routestring, framedgw, 16);
+ if (framedgw[0] != '\0')
+ strncat(routestring, framedgw, 16);
+ else
+ strncat(routestring, this->getFramedIp().c_str(),
this->getFramedIp().size());
+
if (framedmetric[0]!='\0')
{
strncat(routestring, " metric ", 8);
@@ -853,7 +857,11 @@
strncat(routestring, "/" ,1);
strncat(routestring, framednetmask_cidr, 2);
strncat(routestring, " gw ", 4);
- strncat(routestring, framedgw, 16);
+ if (framedgw[0] != '\0')
+ strncat(routestring, framedgw, 16);
+ else
+ strncat(routestring, this->getFramedIp().c_str(),
this->getFramedIp().size());
+
if (framedmetric[0]!='\0')
{
strncat(routestring, " metric ", 8);
-- System Information:
Debian Release: 7.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]