Skip to content

Commit 5e079a4

Browse files
committed
return loopback address in case of failure to resolve ip address
1 parent 98b112a commit 5e079a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/lib/ddns_resolver/ddns_resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const ddnsResolver = {
3434
.catch((/*error*/) => {
3535
// return input address in case of failure
3636
logger.error(`Failed to resolve IP for ${host}`);
37-
return domainName;
37+
return '127.0.0.1'; // in case of failure, return the loopback address
3838
});
3939
},
4040

0 commit comments

Comments
 (0)