diff --git a/client/src/actions/index.js b/client/src/actions/index.js index be3a8c65..9b06352d 100644 --- a/client/src/actions/index.js +++ b/client/src/actions/index.js @@ -679,6 +679,8 @@ export const setTlsConfig = config => async (dispatch) => { const values = { ...config }; values.certificate_chain = btoa(values.certificate_chain); values.private_key = btoa(values.private_key); + values.port_https = values.port_https || 0; + values.port_dns_over_tls = values.port_dns_over_tls || 0; await apiClient.setTlsConfig(values); dispatch(setTlsConfigSuccess(config)); diff --git a/client/src/reducers/index.js b/client/src/reducers/index.js index 58ff3149..50c0e4fc 100644 --- a/client/src/reducers/index.js +++ b/client/src/reducers/index.js @@ -332,8 +332,6 @@ const encryption = handleActions({ certificate_chain: '', private_key: '', server_name: '', - port_https: 0, - port_dns_over_tls: 0, }); export default combineReducers({