From e6c9ec0b3960aea8b233a50db54b282f23496fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Oliveirinha?= Date: Mon, 24 Oct 2022 13:14:47 +0100 Subject: [PATCH] TUN-6871: Add default feature to cloudflared to support EOF on QUIC connections --- cmd/cloudflared/tunnel/configuration.go | 2 +- supervisor/tunnel.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/cloudflared/tunnel/configuration.go b/cmd/cloudflared/tunnel/configuration.go index ce628168..69d272b0 100644 --- a/cmd/cloudflared/tunnel/configuration.go +++ b/cmd/cloudflared/tunnel/configuration.go @@ -46,7 +46,7 @@ var ( LogFieldHostname = "hostname" secretFlags = [2]*altsrc.StringFlag{credentialsContentsFlag, tunnelTokenFlag} - defaultFeatures = []string{supervisor.FeatureAllowRemoteConfig, supervisor.FeatureSerializedHeaders, supervisor.FeatureDatagramV2} + defaultFeatures = []string{supervisor.FeatureAllowRemoteConfig, supervisor.FeatureSerializedHeaders, supervisor.FeatureDatagramV2, supervisor.FeatureQUICSupportEOF} configFlags = []string{"autoupdate-freq", "no-autoupdate", "retries", "protocol", "loglevel", "transport-loglevel", "origincert", "metrics", "metrics-update-freq", "edge-ip-version"} ) diff --git a/supervisor/tunnel.go b/supervisor/tunnel.go index 95271ab4..e4a0a08a 100644 --- a/supervisor/tunnel.go +++ b/supervisor/tunnel.go @@ -37,6 +37,7 @@ const ( FeatureAllowRemoteConfig = "allow_remote_config" FeatureDatagramV2 = "support_datagram_v2" FeaturePostQuantum = "postquantum" + FeatureQUICSupportEOF = "support_quic_eof" ) type TunnelConfig struct {