aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/relay')
-rw-r--r--src/feature/relay/router.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c
index e547b5a553..7ad0d1bd05 100644
--- a/src/feature/relay/router.c
+++ b/src/feature/relay/router.c
@@ -2914,9 +2914,8 @@ router_dump_router_to_string(routerinfo_t *router,
} else {
bd = "any";
}
- if (strchr(bd, '\n') || strchr(bd, '\r'))
- bd = escaped(bd);
- smartlist_add_asprintf(chunks, "bridge-distribution-request %s\n", bd);
+ smartlist_add_asprintf(chunks, "bridge-distribution-request %s\n",
+ escaped(bd));
}
if (router->onion_curve25519_pkey) {