From 73a895697a762d077504336443ee6f7302eb9595 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 8 Mar 2021 18:33:20 +0100 Subject: [PATCH] Syslog Server requires IP-address - host name not working fixes #734 --- interface/src/project/EMSESPSettingsController.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interface/src/project/EMSESPSettingsController.tsx b/interface/src/project/EMSESPSettingsController.tsx index 4f394814e..a32000582 100644 --- a/interface/src/project/EMSESPSettingsController.tsx +++ b/interface/src/project/EMSESPSettingsController.tsx @@ -8,7 +8,7 @@ import MenuItem from '@material-ui/core/MenuItem'; import { ENDPOINT_ROOT } from '../api'; import { restController, RestControllerProps, RestFormLoader, RestFormProps, FormActions, FormButton, BlockFormControlLabel, SectionContent } from '../components'; -import { isIP, isHostname, or, optional } from '../validators'; +import { isIP, optional } from '../validators'; import { EMSESPSettings } from './EMSESPtypes'; @@ -19,7 +19,7 @@ type EMSESPSettingsControllerProps = RestControllerProps; class EMSESPSettingsController extends Component { componentDidMount() { - ValidatorForm.addValidationRule('isIPOrHostname', optional(or(isIP, isHostname))); + ValidatorForm.addValidationRule('isOptionalIP', optional(isIP)); this.props.loadData(); } @@ -238,10 +238,10 @@ function EMSESPSettingsControllerForm(props: EMSESPSettingsControllerFormProps) label="Enable Syslog" />