mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-18 13:23:26 +00:00
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:
@@ -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 '';
|
||||
|
||||
Reference in New Issue
Block a user