Send 0 on empty port value

This commit is contained in:
Ildar Kamalov 2019-02-01 17:32:14 +03:00 committed by Eugene Bujak
parent 351673c060
commit cb9ffe4de9
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -332,8 +332,6 @@ const encryption = handleActions({
certificate_chain: '',
private_key: '',
server_name: '',
port_https: 0,
port_dns_over_tls: 0,
});
export default combineReducers({