diff options
author | David Goulet <dgoulet@torproject.org> | 2020-09-22 10:45:52 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-11-18 11:31:37 -0500 |
commit | ea52705e4b1753a75aac77ec0bc828d70327a4ad (patch) | |
tree | 331a8d61cd709483ed9cdba428d6141ba0e9938c /src/feature/client/bridges.c | |
parent | fcf5bbb59fe12304dd60da248fafc5d892629d1b (diff) | |
download | tor-ea52705e4b1753a75aac77ec0bc828d70327a4ad.tar.gz tor-ea52705e4b1753a75aac77ec0bc828d70327a4ad.zip |
config: Bridge line with a transport must have a ClientTransportPlugin
Fixes #25528
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/client/bridges.c')
-rw-r--r-- | src/feature/client/bridges.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/feature/client/bridges.c b/src/feature/client/bridges.c index 6e10defa13..8e2bb01661 100644 --- a/src/feature/client/bridges.c +++ b/src/feature/client/bridges.c @@ -164,6 +164,17 @@ bridge_get_addr_port(const bridge_info_t *bridge) return &bridge->addrport_configured; } +/** + * Given a <b>bridge</b>, return the transport name. If none were configured, + * NULL is returned. + */ +const char * +bridget_get_transport_name(const bridge_info_t *bridge) +{ + tor_assert(bridge); + return bridge->transport_name; +} + /** If we have a bridge configured whose digest matches <b>digest</b>, or a * bridge with no known digest whose address matches any of the * tor_addr_port_t's in <b>orports</b>, return that bridge. Else return |