mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix remote url resolving issue
This commit is contained in:
parent
a54d2b0924
commit
9caf1678de
@ -166,9 +166,10 @@ public class FileTransferServiceHelperUtil {
|
|||||||
throw new FileTransferServiceHelperUtilException("Received null for download url");
|
throw new FileTransferServiceHelperUtilException("Received null for download url");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Objects.equals(System.getProperty("iot.gateway.host"), downloadUrl.getHost())) {
|
if (!Objects.equals(System.getProperty("iot.gateway.host"), downloadUrl.getHost()) &&
|
||||||
|
!Objects.equals(System.getProperty("iot.core.host"), downloadUrl.getHost())) {
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Host not match with " + System.getProperty("iot.gateway.host"));
|
log.debug("Download URL " + downloadUrl + " contains not matching host");
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user