Skip to content

Commit 057a0cc

Browse files
committed
TUN-5833: Send feature allow_remote_config if Tunnel is run with --token
1 parent ca43b03 commit 057a0cc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmd/cloudflared/tunnel/configuration.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ func prepareTunnelConfig(
191191
}
192192
log.Info().Msgf("Generated Connector ID: %s", clientUUID)
193193
features := append(c.StringSlice("features"), supervisor.FeatureSerializedHeaders)
194+
if c.IsSet(TunnelTokenFlag) {
195+
features = append(features, supervisor.FeatureAllowRemoteConfig)
196+
log.Info().Msg("Will be fetching remotely managed configuration from Cloudflare API")
197+
}
194198
namedTunnel.Client = tunnelpogs.ClientInfo{
195199
ClientID: clientUUID[:],
196200
Features: dedup(features),

cmd/cloudflared/tunnel/subcommand_context.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ func (sc *subcommandContext) create(name string, credentialsFilePath string, sec
220220
}
221221
fmt.Println(" Keep this file secret. To revoke these credentials, delete the tunnel.")
222222
fmt.Printf("\nCreated tunnel %s with id %s\n", tunnel.Name, tunnel.ID)
223-
fmt.Printf("\nTunnel Token: %s\n", tunnel.Token)
224223

225224
return &tunnel.Tunnel, nil
226225
}

0 commit comments

Comments
 (0)