mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-07 19:00:23 +08:00
AUTH-2975 don't check /etc on windows
This commit is contained in:
@@ -125,7 +125,7 @@ func (sc *subcommandContext) tunnelCredentialsPath(tunnelID uuid.UUID) (string,
|
||||
}
|
||||
|
||||
// Last resort look under default config directories
|
||||
for _, configDir := range config.DefaultConfigDirs {
|
||||
for _, configDir := range config.DefaultConfigSearchDirectories() {
|
||||
if filePath, err := tunnelFilePath(tunnelID, configDir); err == nil {
|
||||
if validFilePath(filePath) {
|
||||
return filePath, nil
|
||||
|
||||
Reference in New Issue
Block a user