From cb9ffe4de91b1f4111e6e97e89595183d3bc0bfe Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Fri, 1 Feb 2019 17:32:14 +0300 Subject: [PATCH] Send 0 on empty port value --- client/src/actions/index.js | 2 ++ client/src/reducers/index.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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({