|
|
@@ -194,28 +194,30 @@ struct _turn_turnserver {
|
|
|
|
|
|
/* Only send RESPONSE-ORIGIN attribute in response if RFC5780 is enabled */
|
|
|
vintp response_origin_only_with_rfc5780;
|
|
|
+
|
|
|
+ /* Return an HTTP 400 response to HTTP connections made to ports not
|
|
|
+ otherwise handling HTTP. */
|
|
|
+ vintp respond_http_unsupported;
|
|
|
};
|
|
|
|
|
|
const char *get_version(turn_turnserver *server);
|
|
|
|
|
|
///////////////////////////////////////////
|
|
|
|
|
|
-void init_turn_server(turn_turnserver *server, turnserver_id id, int verbose, ioa_engine_handle e,
|
|
|
- turn_credential_type ct, int stun_port, int fingerprint, dont_fragment_option_t dont_fragment,
|
|
|
- get_user_key_cb userkeycb, check_new_allocation_quota_cb chquotacb,
|
|
|
- release_allocation_quota_cb raqcb, ioa_addr *external_addr, vintp check_origin,
|
|
|
- vintp no_tcp_relay, vintp no_udp_relay, vintp stale_nonce, vintp max_allocate_lifetime,
|
|
|
- vintp channel_lifetime, vintp permission_lifetime, vintp stun_only, vintp no_stun,
|
|
|
- vintp no_software_attribute, vintp web_admin_listen_on_workers,
|
|
|
- turn_server_addrs_list_t *alternate_servers_list,
|
|
|
- turn_server_addrs_list_t *tls_alternate_servers_list, turn_server_addrs_list_t *aux_servers_list,
|
|
|
- int self_udp_balance, vintp no_multicast_peers, vintp allow_loopback_peers,
|
|
|
- ip_range_list_t *ip_whitelist, ip_range_list_t *ip_blacklist,
|
|
|
- send_socket_to_relay_cb send_socket_to_relay, vintp secure_stun, vintp mobility, int server_relay,
|
|
|
- send_turn_session_info_cb send_turn_session_info, send_https_socket_cb send_https_socket,
|
|
|
- allocate_bps_cb allocate_bps_func, int oauth, const char *oauth_server_name,
|
|
|
- const char *acme_redirect, ALLOCATION_DEFAULT_ADDRESS_FAMILY allocation_default_address_family,
|
|
|
- vintp log_binding, vintp no_stun_backward_compatibility, vintp response_origin_only_with_rfc5780);
|
|
|
+void init_turn_server(
|
|
|
+ turn_turnserver *server, turnserver_id id, int verbose, ioa_engine_handle e, turn_credential_type ct, int stun_port,
|
|
|
+ int fingerprint, dont_fragment_option_t dont_fragment, get_user_key_cb userkeycb,
|
|
|
+ check_new_allocation_quota_cb chquotacb, release_allocation_quota_cb raqcb, ioa_addr *external_addr,
|
|
|
+ vintp check_origin, vintp no_tcp_relay, vintp no_udp_relay, vintp stale_nonce, vintp max_allocate_lifetime,
|
|
|
+ vintp channel_lifetime, vintp permission_lifetime, vintp stun_only, vintp no_stun, vintp no_software_attribute,
|
|
|
+ vintp web_admin_listen_on_workers, turn_server_addrs_list_t *alternate_servers_list,
|
|
|
+ turn_server_addrs_list_t *tls_alternate_servers_list, turn_server_addrs_list_t *aux_servers_list,
|
|
|
+ int self_udp_balance, vintp no_multicast_peers, vintp allow_loopback_peers, ip_range_list_t *ip_whitelist,
|
|
|
+ ip_range_list_t *ip_blacklist, send_socket_to_relay_cb send_socket_to_relay, vintp secure_stun, vintp mobility,
|
|
|
+ int server_relay, send_turn_session_info_cb send_turn_session_info, send_https_socket_cb send_https_socket,
|
|
|
+ allocate_bps_cb allocate_bps_func, int oauth, const char *oauth_server_name, const char *acme_redirect,
|
|
|
+ ALLOCATION_DEFAULT_ADDRESS_FAMILY allocation_default_address_family, vintp log_binding,
|
|
|
+ vintp no_stun_backward_compatibility, vintp response_origin_only_with_rfc5780, vintp respond_http_unsupported);
|
|
|
|
|
|
ioa_engine_handle turn_server_get_engine(turn_turnserver *s);
|
|
|
|