jerryshao commented on code in PR #11354:
URL: https://github.com/apache/gravitino/pull/11354#discussion_r3397645225


##########
core/src/main/java/org/apache/gravitino/GravitinoEnv.java:
##########
@@ -545,6 +545,15 @@ public boolean cacheEnabled() {
     return config == null || config.get(Configs.CACHE_ENABLED);
   }
 
+  /**
+   * Returns whether remote URIs that resolve to unsafe addresses should be 
blocked.
+   *
+   * @return whether unsafe remote URIs should be blocked
+   */
+  public boolean blockUnsafeRemoteUri() {
+    return config == null || 
!Boolean.FALSE.equals(config.get(Configs.BLOCK_UNSAFE_REMOTE_URI));

Review Comment:
   I'm curious why can't we use `return config == null || 
config.get(Configs.BLOCK_UNSAFE_REMOTE_URI);`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to