This commit is contained in:
parent
055ee31104
commit
2a01825560
3 changed files with 12 additions and 3 deletions
|
@ -52,6 +52,7 @@ TLS_CERTIFICATE=""
|
|||
TLS_PRIVATE_KEY=""
|
||||
DNS_RESOLVER=()
|
||||
DNS_RESOLVER_PREFER_IPV4=""
|
||||
TLS_ECH_ENABLE=""
|
||||
REVERSE_TUNNEL_CONNECTION_RETRY_MAX_BACKOFF=""
|
||||
|
||||
# Function to trim whitespace
|
||||
|
@ -179,6 +180,9 @@ while IFS='=' read -r key value; do
|
|||
dns_resolver_prefer_ipv4)
|
||||
DNS_RESOLVER_PREFER_IPV4="$value"
|
||||
;;
|
||||
tls_ech_enable)
|
||||
TLS_ECH_ENABLE="$value"
|
||||
;;
|
||||
reverse_tunnel_connection_retry_max_backoff)
|
||||
REVERSE_TUNNEL_CONNECTION_RETRY_MAX_BACKOFF="$value"
|
||||
;;
|
||||
|
@ -228,6 +232,7 @@ for resolver in "${DNS_RESOLVER[@]}"; do
|
|||
CMD+=("--dns-resolver" "$resolver")
|
||||
done
|
||||
[ "$DNS_RESOLVER_PREFER_IPV4" = "true" ] && CMD+=("--dns-resolver-prefer-ipv4")
|
||||
[ "$TLS_ECH_ENABLE" = "true" ] && CMD+=("--tls-ech-enable")
|
||||
|
||||
# Set environment variable for nb_worker_threads if specified
|
||||
if [ -n "$NB_WORKER_THREADS" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue