diff options
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index b97c07fb8..fa6cb8e17 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -518,6 +518,16 @@ safe_str(const char *address) return address; } +/** DOCDOC */ +const char * +escaped_safe_str(const char *address) +{ + if (get_options()->SafeLogging) + return "[scrubbed]"; + else + return escaped(address); +} + /** Add the default directory servers directly into the trusted dir list. */ static void add_default_trusted_dirservers(void) |