Send 0 on empty port value
This commit is contained in:
parent
351673c060
commit
cb9ffe4de9
|
@ -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));
|
||||
|
|
|
@ -332,8 +332,6 @@ const encryption = handleActions({
|
|||
certificate_chain: '',
|
||||
private_key: '',
|
||||
server_name: '',
|
||||
port_https: 0,
|
||||
port_dns_over_tls: 0,
|
||||
});
|
||||
|
||||
export default combineReducers({
|
||||
|
|
Loading…
Reference in New Issue