[pmg-devel] [PATCH pmg-gui 1/1] Add port to SpamQuarantineOptions

Stoiko Ivanov s.ivanov at proxmox.com
Thu Apr 2 19:51:46 CEST 2020


If the quarantine is made available via reverse proxy, it sometimes
is bound to a different port (e.g. on 443 for firewall policy reasons)

The use-case seems common enough to justify exposing the parameter via
GUI.

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 js/SpamQuarantineOptions.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/js/SpamQuarantineOptions.js b/js/SpamQuarantineOptions.js
index 284e563..1862146 100644
--- a/js/SpamQuarantineOptions.js
+++ b/js/SpamQuarantineOptions.js
@@ -57,6 +57,8 @@ Ext.define('PMG.SpamQuarantineOptions', {
 
 	me.add_text_row('hostname', gettext('Quarantine Host'),
 			{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
+	me.add_integer_row('port', gettext('Quarantine port'),
+			{ deleteEmpty: true, defaultValue: Proxmox.Utils.defaultText });
 	me.add_text_row('mailfrom', gettext("EMail 'From:'"),
 			{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
 
-- 
2.20.1




More information about the pmg-devel mailing list