Skip to content

Commit

Permalink
client: change validation for custom edns ip
Browse files Browse the repository at this point in the history
  • Loading branch information
Blakhard committed Mar 21, 2023
1 parent 44e4dc6 commit 1302586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/Settings/Dns/Config/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
validateIpv4,
validateIpv6,
validateRequiredValue,
validateIp,
} from '../../../../helpers/validators';
import { BLOCKING_MODES, FORM_NAME, UINT32_RANGE } from '../../../../helpers/constants';

Expand Down Expand Up @@ -118,7 +119,7 @@ const Form = ({
component={renderInputField}
className="form-control"
placeholder={t('form_enter_ip')}
validate={[validateIpv4, validateRequiredValue]}
validate={[validateIp, validateRequiredValue]}
/>)}

</div>
Expand Down

0 comments on commit 1302586

Please sign in to comment.