mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 07:39:58 +00:00
TUN-7004: Dont show local config dirs for remotely configured tuns
cloudflared shows possible directories for config files to be present if it doesn't see one when starting up. For remotely configured files, it may not be necessary to have a config file present. This PR looks to see if a token flag was provided, and if yes, does not log this message.
This commit is contained in:
@@ -241,7 +241,8 @@ func StartServer(
|
||||
listeners := gracenet.Net{}
|
||||
errC := make(chan error)
|
||||
|
||||
if config.GetConfiguration().Source() == "" {
|
||||
// Only log for locally configured tunnels (Token is blank).
|
||||
if config.GetConfiguration().Source() == "" && c.String(TunnelTokenFlag) == "" {
|
||||
log.Info().Msg(config.ErrNoConfigFile.Error())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user