1
0
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:
Dalton
2020-08-14 15:52:47 -05:00
parent 292a7f07a2
commit 5499c77e62
6 changed files with 22 additions and 11 deletions

View File

@@ -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