mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
* while here, - add 'broker' support; - add 'tor' as RUN_DEPENDS, as broker uses its geoip databases; - add rc script to start a local broker without TLS support. Changes in version v2.3.0 - Issue 40146: Avoid performing two NAT probe tests at startup - Issue 40134: Log messages from client NAT check failures are confuse - Issue 34075: Implement metrics to measure snowflake churn - Issue 28651: Prepare all pieces of the pipeline for a second bridge - Issue 40129: Distributed Snowflake Server Support Changes in version v2.2.0 - Issue 40099: Initialize SnowflakeListener.closed - Add connection failure events for proxy timeouts - Issue 40103: Fix proxy logging verb tense - Fix up and downstream metrics output for proxy - Issue 40095: uTLS for broker negotiation - Forward bridge fingerprint from client to broker (WIP, Issue 28651) - Issue 40104: Make it easier to configure proxy type - Remove version from ClientPollRequest - Issue 40124: Move tor-specific code out of library - Issue 40115: Scrub pt event logs - Issue 40127: Bump webrtc and dtls library versions - Bump version of webrtc and dtls to fix dtls CVEs - Issue 40141: Ensure library calls of events can be scrubbed Sponsored by: TorBSD Diversity Project (TDP) Sponsored by: The Tor Project
29 lines
824 B
Bash
29 lines
824 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: snowflake-broker
|
|
# REQUIRE: cleanvar SERVERS
|
|
#
|
|
# Options to configure it via /etc/rc.conf:
|
|
#
|
|
# snowflake_broker_enable (bool) Enable service on boot. Default: NO
|
|
# snowflake_broker_args (str) Broker arguments. Default: -addr 127.0.0.1:8080 -disable-tls
|
|
# snowflake_broker_user (str) User to run as. Default: _tor
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="snowflake-broker"
|
|
rcvar="snowflake_broker_enable"
|
|
pidfile="/var/run/${name}.pid"
|
|
logfile="/var/log/${name}.log"
|
|
procname="%%PREFIX%%/bin/${name}"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${snowflake_broker_enable:="NO"}
|
|
: ${snowflake_broker_args:="-addr 127.0.0.1:8080 -disable-tls"}
|
|
: ${snowflake_broker_user:="_tor"}
|
|
|
|
command="/usr/sbin/daemon"
|
|
command_args="-p ${pidfile} -u ${snowflake_broker_user} -o ${logfile} -f ${procname} ${snowflake_broker_args}"
|
|
|
|
run_rc_command "$1"
|