Update configs for active hosts only on ddns update

Other changes:
- Fixed null property read error on clients (when switching to public access)
- Use separate `resolvedAddress` field for resolved IP instead of overwriting address
- Reduced ddns log verbosity
This commit is contained in:
Varun Gupta
2023-12-02 22:47:22 -05:00
committed by Varun Gupta
parent 743cdd8b0b
commit 7b09fefd17
4 changed files with 14 additions and 8 deletions

View File

@@ -128,6 +128,9 @@ module.exports = {
*/
renderEngine.registerFilter('nginxAccessRule', (v) => {
if (typeof v.directive !== 'undefined' && typeof v.address !== 'undefined' && v.directive && v.address) {
if (typeof v.resolvedAddress !== 'undefined' && v.resolvedAddress) {
return `${v.directive} ${v.resolvedAddress}; # ${v.address}`;
}
return `${v.directive} ${v.address};`;
}
return '';