Skip to content

Commit

Permalink
feat(proxy): fix (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
caojiajun committed Nov 8, 2024
1 parent 872cb9a commit 7d63f79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public Map<String, String> load() {
targetFilePath = fileInfo.getFilePath();
}
}
boolean specificFileWritable = !Boolean.parseBoolean(initConf.get("specific.file.path.writable"));
String v = initConf.get("specific.file.path.writable");
boolean specificFileWritable = v == null || Boolean.parseBoolean(v);
//dynamic specific conf
Pair<String, Map<String, String>> pair = ProxyDynamicConfLoaderUtil.tryLoadDynamicConfBySpecificFilePath(conf, ConfigContentType.properties);
if (pair.getFirst() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public Map<String, String> load() {
targetFilePath = fileInfo.getFilePath();
}
}
boolean specificFileWritable = !Boolean.parseBoolean(initConf.get("specific.file.path.writable"));
String v = initConf.get("specific.file.path.writable");
boolean specificFileWritable = v == null || Boolean.parseBoolean(v);
//dynamic specific conf
Pair<String, Map<String, String>> pair = ProxyDynamicConfLoaderUtil.tryLoadDynamicConfBySpecificFilePath(conf, ConfigContentType.json);
if (pair.getFirst() != null) {
Expand Down

0 comments on commit 7d63f79

Please sign in to comment.