Skip to content

Commit ab5a415

Browse files
committed
Update RESTClientUtility
1 parent b9213e8 commit ab5a415

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

roda-common/roda-common-utils/src/main/java/org/roda/core/util/RESTClientUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private static URI buildSafeUri(String baseUrl, String resource) throws GenericE
175175
// Optional but safer: prevent requests to loopback or private addresses
176176
try {
177177
InetAddress addr = InetAddress.getByName(base.getHost());
178-
if (addr.isAnyLocalAddress() || addr.isLoopbackAddress() || addr.isSiteLocalAddress()) {
178+
if (addr.isAnyLocalAddress() || addr.isLoopbackAddress()) {
179179
throw new GenericException("Central instance URL points to a disallowed address");
180180
}
181181
} catch (UnknownHostException e) {

0 commit comments

Comments
 (0)