diff options
| author | Kozlov Dmitry <dima@server> | 2010-11-09 13:21:32 +0300 |
|---|---|---|
| committer | Kozlov Dmitry <dima@server> | 2010-11-09 13:21:32 +0300 |
| commit | 605c797873ceee12a7eb3561d6e3e7682ded943b (patch) | |
| tree | 9ef44fc047e53f370fc489e37d26e119c2b2ae03 /accel-pptpd/radius/dm_coa.c | |
| parent | d0130adf3aaca9fa3fee227a06f3e1cfcbf40784 (diff) | |
| download | accel-ppp-605c797873ceee12a7eb3561d6e3e7682ded943b.tar.gz accel-ppp-605c797873ceee12a7eb3561d6e3e7682ded943b.zip | |
radius: introduced dae-server option to configure Dynamic Authorization Extenstion (DM/CoA) instead of dm_coa_secret
Diffstat (limited to 'accel-pptpd/radius/dm_coa.c')
| -rw-r--r-- | accel-pptpd/radius/dm_coa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pptpd/radius/dm_coa.c b/accel-pptpd/radius/dm_coa.c index e66a3b3..4b89449 100644 --- a/accel-pptpd/radius/dm_coa.c +++ b/accel-pptpd/radius/dm_coa.c @@ -261,9 +261,9 @@ static void __init init(void) return; } addr.sin_family = AF_INET; - addr.sin_port = htons (PD_COA_PORT); - if (conf_nas_ip_address) - addr.sin_addr.s_addr = conf_nas_ip_address; + addr.sin_port = htons (conf_dm_coa_port); + if (conf_dm_coa_server) + addr.sin_addr.s_addr = inet_addr(conf_dm_coa_server); else addr.sin_addr.s_addr = htonl (INADDR_ANY); if (bind (serv.hnd.fd, (struct sockaddr *) &addr, sizeof (addr)) < 0) { |
