summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debug.c2
-rw-r--r--radsecproxy.c2
-rw-r--r--radsecproxy.conf-example4
-rw-r--r--radsecproxy.conf.54
4 files changed, 7 insertions, 5 deletions
diff --git a/debug.c b/debug.c
index c36a7be..51ea91f 100644
--- a/debug.c
+++ b/debug.c
@@ -70,6 +70,8 @@ int debug_set_destination(char *dest) {
}
if (!strncasecmp(dest, "x-syslog://", 11)) {
dest += 11;
+ if (*dest == '/')
+ dest++;
if (*dest) {
for (i = 0; facstrings[i]; i++)
if (!strcasecmp(dest, facstrings[i]))
diff --git a/radsecproxy.c b/radsecproxy.c
index 779e9f4..4851b28 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2298,7 +2298,7 @@ int main(int argc, char **argv) {
options.logdestination = NULL;
else {
if (!options.logdestination)
- options.logdestination = "x-syslog://";
+ options.logdestination = "x-syslog:///";
debug_set_destination(options.logdestination);
}
diff --git a/radsecproxy.conf-example b/radsecproxy.conf-example
index 854bb95..4a0457c 100644
--- a/radsecproxy.conf-example
+++ b/radsecproxy.conf-example
@@ -17,8 +17,8 @@
# Or logging with Syslog. LOG_DAEMON used if facility not specified
# The supported facilities are LOG_DAEMON, LOG_MAIL, LOG_USER and
# LOG_LOCAL0, ..., LOG_LOCAL7
-#LogDestination x-syslog://
-#LogDestination x-syslog://log_local2
+#LogDestination x-syslog:///
+#LogDestination x-syslog:///log_local2
#If we have TLS clients or servers we must define at least one tls block.
#You can name them whatever you like and then reference them by name when
diff --git a/radsecproxy.conf.5 b/radsecproxy.conf.5
index 7145830..b19ebb3 100644
--- a/radsecproxy.conf.5
+++ b/radsecproxy.conf.5
@@ -1,4 +1,4 @@
-.TH radsecproxy.conf 5 "7 June 2007"
+.TH radsecproxy.conf 5 "13 June 2007"
.SH "NAME"
radsecproxy.conf - Radsec proxy configuration file
@@ -80,7 +80,7 @@ syslog with facility \fBLOG_DAEMON\fR. Using this option you can specify another
syslog facility, or you may specify that logging should be to a particular file,
not using syslog. The value must be either a \fIfile\fR or \fIsyslog\fR URL. The
file URL is the standard one, specifying a local file that should be used. For
-syslog, you must do use the following URL syntax: \fBx-syslog://FACILITY\fR where
+syslog, you must use the syntax: \fBx-syslog:///FACILITY\fR where
\fBFACILITY\fR must be one of \fBLOG_DAEMON\fR, \fBLOG_MAIL\fR, \fBLOG_USER\fR,
\fBLOG_LOCAL0\fR, \fBLOG_LOCAL1\fR, \fBLOG_LOCAL2\fR, \fBLOG_LOCAL3\fR,
\fBLOG_LOCAL4\fR, \fBLOG_LOCAL5\fR, \fBLOG_LOCAL6\fR or \fBLOG_LOCAL7\fR. You may