1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-11 05:30:30 +08:00

TUN-5833: Send feature allow_remote_config if Tunnel is run with --token

This commit is contained in:
Nuno Diegues
2022-03-16 11:27:35 +00:00
parent ca43b0357f
commit 057a0cc758
2 changed files with 4 additions and 1 deletions

View File

@@ -191,6 +191,10 @@ func prepareTunnelConfig(
}
log.Info().Msgf("Generated Connector ID: %s", clientUUID)
features := append(c.StringSlice("features"), supervisor.FeatureSerializedHeaders)
if c.IsSet(TunnelTokenFlag) {
features = append(features, supervisor.FeatureAllowRemoteConfig)
log.Info().Msg("Will be fetching remotely managed configuration from Cloudflare API")
}
namedTunnel.Client = tunnelpogs.ClientInfo{
ClientID: clientUUID[:],
Features: dedup(features),