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 };
|
const values = { ...config };
|
||||||
values.certificate_chain = btoa(values.certificate_chain);
|
values.certificate_chain = btoa(values.certificate_chain);
|
||||||
values.private_key = btoa(values.private_key);
|
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);
|
await apiClient.setTlsConfig(values);
|
||||||
dispatch(setTlsConfigSuccess(config));
|
dispatch(setTlsConfigSuccess(config));
|
||||||
|
|
|
@ -332,8 +332,6 @@ const encryption = handleActions({
|
||||||
certificate_chain: '',
|
certificate_chain: '',
|
||||||
private_key: '',
|
private_key: '',
|
||||||
server_name: '',
|
server_name: '',
|
||||||
port_https: 0,
|
|
||||||
port_dns_over_tls: 0,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export default combineReducers({
|
export default combineReducers({
|
||||||
|
|
Loading…
Reference in New Issue