Loading src/or/or.h +1 −0 Original line number Diff line number Diff line Loading @@ -4239,6 +4239,7 @@ int authdir_mode_tests_reachability(or_options_t *options); int authdir_mode_bridge(or_options_t *options); int server_mode(or_options_t *options); int public_server_mode(or_options_t *options); int advertised_server_mode(void); int proxy_mode(or_options_t *options); void consider_publishable_server(int force); Loading src/or/router.c +9 −0 Original line number Diff line number Diff line Loading @@ -954,6 +954,15 @@ server_mode(or_options_t *options) return (options->ORPort != 0 || options->ORListenAddress); } /** Return true iff we are trying to be a non-bridge server. */ int public_server_mode(or_options_t *options) { if (!server_mode(options)) return 0; return (!options->BridgeRelay); } /** Remember if we've advertised ourselves to the dirservers. */ static int server_is_advertised=0; Loading Loading
src/or/or.h +1 −0 Original line number Diff line number Diff line Loading @@ -4239,6 +4239,7 @@ int authdir_mode_tests_reachability(or_options_t *options); int authdir_mode_bridge(or_options_t *options); int server_mode(or_options_t *options); int public_server_mode(or_options_t *options); int advertised_server_mode(void); int proxy_mode(or_options_t *options); void consider_publishable_server(int force); Loading
src/or/router.c +9 −0 Original line number Diff line number Diff line Loading @@ -954,6 +954,15 @@ server_mode(or_options_t *options) return (options->ORPort != 0 || options->ORListenAddress); } /** Return true iff we are trying to be a non-bridge server. */ int public_server_mode(or_options_t *options) { if (!server_mode(options)) return 0; return (!options->BridgeRelay); } /** Remember if we've advertised ourselves to the dirservers. */ static int server_is_advertised=0; Loading