Skip to content

Commit

Permalink
per server source for dyndisc & memory management
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Mauchle committed Oct 17, 2019
1 parent 0abb5f4 commit af18128
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
chanes since 1.8.1
New features:
- Accept multiple source* configs for IPv4/v6
- Specify source per server

Bug fixes:
- Fix wrong config-unhexing if %25 (%) occurs

Expand Down
2 changes: 2 additions & 0 deletions radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2166,6 +2166,7 @@ void freeclsrvconf(struct clsrvconf *conf) {
if (conf->hostsrc)
freegconfmstr(conf->hostsrc);
free(conf->portsrc);
freegconfmstr(conf->source);
free(conf->confsecret);
free(conf->secret);
free(conf->tls);
Expand Down Expand Up @@ -2260,6 +2261,7 @@ int mergesrvconf(struct clsrvconf *dst, struct clsrvconf *src) {
if (!mergeconfstring(&dst->name, &src->name) ||
!mergeconfmstring(&dst->hostsrc, &src->hostsrc) ||
!mergeconfstring(&dst->portsrc, &src->portsrc) ||
!mergeconfmstring(&dst->source, &src->source) ||
!mergeconfstring(&dst->confsecret, &src->confsecret) ||
!mergeconfstring(&dst->tls, &src->tls) ||
!mergeconfstring(&dst->matchcertattr, &src->matchcertattr) ||
Expand Down
6 changes: 6 additions & 0 deletions radsecproxy.conf.5.in
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,12 @@ Specify the \fIport\fR (UDP/TCP) to connect to. If omitted, UDP and TCP will
default to 1812 while TLS and DTLS will default to 2083.
.RE

.BI "Source (" address | \fR* )[\fR: port ]
.RS
Specify the source address and/or port to use for this server. See \fBSource...\fR
options above.
.RE

.BI "DynamicLookupCommand " command
.RS
Execude the \fIcommand\fR to dynamically configure a server. The executable file
Expand Down

0 comments on commit af18128

Please sign in to comment.