diff options
author | Kozlov Dmitry <dima@server> | 2010-10-29 14:59:22 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-10-29 14:59:22 +0400 |
commit | 01da9860b5637448208cbe8f88bf7a9a290a4f3f (patch) | |
tree | f2e132fcf4365611d7a1ad84172e99c86de8d5c6 /accel-pptpd/radius/radius.c | |
parent | 4e1a10190d4afba6a960666fa540a8983023b595 (diff) | |
download | accel-ppp-01da9860b5637448208cbe8f88bf7a9a290a4f3f.tar.gz accel-ppp-01da9860b5637448208cbe8f88bf7a9a290a4f3f.zip |
ppp: improved mppe handling
radius: bind parameter to bind to ip other then nas-ip-address
Diffstat (limited to 'accel-pptpd/radius/radius.c')
-rw-r--r-- | accel-pptpd/radius/radius.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/accel-pptpd/radius/radius.c b/accel-pptpd/radius/radius.c index a07df9a6..e6a13e90 100644 --- a/accel-pptpd/radius/radius.c +++ b/accel-pptpd/radius/radius.c @@ -27,6 +27,7 @@ int conf_timeout = 3; char *conf_nas_identifier = "accel-pptpd"; char *conf_nas_ip_address; char *conf_gw_ip_address; +in_addr_t conf_bind = 0; int conf_verbose = 0; char *conf_auth_server; @@ -378,6 +379,12 @@ static void __init radius_init(void) if (opt) conf_gw_ip_address = opt; + opt = conf_get_opt("radius", "bind"); + if (opt) + conf_bind = inet_addr(opt); + else if (conf_nas_ip_address) + conf_bind = inet_addr(conf_nas_ip_address); + opt = conf_get_opt("radius", "auth_server"); if (!opt) { log_emerg("radius: auth_server not specified\n"); |