diff --git a/cps/admin.py b/cps/admin.py index 2f377187..557d0255 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -1199,7 +1199,7 @@ def _configuration_update_helper(): to_save = request.form.to_dict() try: reboot_required |= _config_int(to_save, "config_port") - + reboot_required |= _config_string(to_save, "config_trustedhosts") reboot_required |= _config_string(to_save, "config_keyfile") if config.config_keyfile and not os.path.isfile(config.config_keyfile): return _configuration_result(_('Keyfile Location is not Valid, Please Enter Correct Path')) diff --git a/cps/config_sql.py b/cps/config_sql.py index 0b45059d..ebc4ca24 100644 --- a/cps/config_sql.py +++ b/cps/config_sql.py @@ -66,7 +66,7 @@ class _Settings(_Base): config_external_port = Column(Integer, default=constants.DEFAULT_PORT) config_certfile = Column(String) config_keyfile = Column(String) - + config_trustedhosts = Column(String,default='') config_calibre_web_title = Column(String, default=u'Calibre-Web') config_books_per_page = Column(Integer, default=60) config_random_books = Column(Integer, default=4) diff --git a/cps/templates/config_edit.html b/cps/templates/config_edit.html index 8cd0034e..4d6c68ce 100644 --- a/cps/templates/config_edit.html +++ b/cps/templates/config_edit.html @@ -46,6 +46,10 @@ +