Skip to content

Commit

Permalink
use persisted config path on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Oct 28, 2024
1 parent 9b319c5 commit f4dae03
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions programs/ziti-edge-tunnel/config-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ char* get_system_config_path() {
char* config_path = malloc(FILENAME_MAX * sizeof(char));
#if _WIN32
snprintf(config_path, FILENAME_MAX, "%s\\NetFoundry", getenv(app_data));
#elif __linux__
snprintf(config_path, FILENAME_MAX, "/var/lib/ziti");
#else
snprintf(config_path, FILENAME_MAX, "/tmp");
snprintf(config_path, FILENAME_MAX, "/var/lib/ziti");
#endif
return config_path;
}
Expand Down

0 comments on commit f4dae03

Please sign in to comment.