Skip to content

Commit

Permalink
fix(zetaclient): tolerate absolute path in GetPath() (#2423)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jul 3, 2024
1 parent 1e4f66c commit f85559c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zetaclient/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ func GetPath(inputPath string) string {
return ""
}
path[0] = home
return filepath.Join(path...)
}
}
return filepath.Join(path...)
return inputPath
}

// ContainRestrictedAddress returns true if any one of the addresses is restricted
Expand Down

0 comments on commit f85559c

Please sign in to comment.