Исправление конфигурационного файла
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / Build project (push) Successful in 6m10s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / Build project (push) Successful in 6m10s
				
			This commit is contained in:
		
							parent
							
								
									204512d6ad
								
							
						
					
					
						commit
						20aa22ddf9
					
				
					 3 changed files with 10 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -52,7 +52,7 @@ TLS_CERTIFICATE=""
 | 
			
		|||
TLS_PRIVATE_KEY=""
 | 
			
		||||
DNS_RESOLVER=()
 | 
			
		||||
DNS_RESOLVER_PREFER_IPV4=""
 | 
			
		||||
REVERSE_RECONNECT_MAX_DELAY=""
 | 
			
		||||
REVERSE_TUNNEL_CONNECTION_RETRY_MAX_BACKOFF=""
 | 
			
		||||
 | 
			
		||||
# Function to trim whitespace
 | 
			
		||||
trim() {
 | 
			
		||||
| 
						 | 
				
			
			@ -179,8 +179,8 @@ while IFS='=' read -r key value; do
 | 
			
		|||
        dns_resolver_prefer_ipv4)
 | 
			
		||||
            DNS_RESOLVER_PREFER_IPV4="$value"
 | 
			
		||||
            ;;
 | 
			
		||||
        reverse_reconnect_max_delay)
 | 
			
		||||
            REVERSE_RECONNECT_MAX_DELAY="$value"
 | 
			
		||||
        reverse_tunnel_connection_retry_max_backoff)
 | 
			
		||||
            REVERSE_TUNNEL_CONNECTION_RETRY_MAX_BACKOFF="$value"
 | 
			
		||||
            ;;
 | 
			
		||||
    esac
 | 
			
		||||
done < "$CONFIG_FILE"
 | 
			
		||||
| 
						 | 
				
			
			@ -223,7 +223,7 @@ done
 | 
			
		|||
[ -n "$HTTP_HEADERS_FILE" ] && CMD+=("--http-headers-file" "$HTTP_HEADERS_FILE")
 | 
			
		||||
[ -n "$TLS_CERTIFICATE" ] && CMD+=("--tls-certificate" "$TLS_CERTIFICATE")
 | 
			
		||||
[ -n "$TLS_PRIVATE_KEY" ] && CMD+=("--tls-private-key" "$TLS_PRIVATE_KEY")
 | 
			
		||||
[ -n "$REVERSE_RECONNECT_MAX_DELAY" ] && CMD+=("--reverse-reconnect-max-delay" "$REVERSE_RECONNECT_MAX_DELAY")
 | 
			
		||||
[ -n "$REVERSE_TUNNEL_CONNECTION_RETRY_MAX_BACKOFF" ] && CMD+=("--reverse-tunnel-connection-retry-max-backoff" "$REVERSE_TUNNEL_CONNECTION_RETRY_MAX_BACKOFF")
 | 
			
		||||
for resolver in "${DNS_RESOLVER[@]}"; do
 | 
			
		||||
    CMD+=("--dns-resolver" "$resolver")
 | 
			
		||||
done
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -158,6 +158,8 @@ websocket_ping_frequency = 30s
 | 
			
		|||
; Prefer IPv4 over IPv6 for DNS resolution (useful for broken IPv6 connections)
 | 
			
		||||
; dns_resolver_prefer_ipv4 = false
 | 
			
		||||
 | 
			
		||||
; Exponential backoff for the delay between reconnect attempts
 | 
			
		||||
; The maximum reconnect delay
 | 
			
		||||
; reverse_reconnect_max_delay = 1s
 | 
			
		||||
; When using reverse tunnel, the client will try to always keep a connection to the server to await for new tunnels
 | 
			
		||||
; This delay is the maximum of time the client will wait before trying to reconnect to the server in case of failure
 | 
			
		||||
; The client follows an exponential backoff strategy until it reaches this maximum delay
 | 
			
		||||
; By default, the client tries to reconnect every 1 second
 | 
			
		||||
; reverse_tunnel_connection_retry_max_backoff = 1s
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue