Skip to content

Commit 6aba60f

Browse files
added ipv6 support
1 parent 36f745e commit 6aba60f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/views/tenant/administration/GeoIPLookup.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ import { CippContentCard } from 'src/components/layout'
2424
import Skeleton from 'react-loading-skeleton'
2525
import { domainsApi } from 'src/store/api/domains'
2626

27-
const isValidTenantInput = (value) => {
28-
// Check if the input is a valid IPAddress
29-
const ipRegex = new RegExp('^([0-9]{1,3}\\.){3}[0-9]{1,3}$')
30-
return !ipRegex.test(value)
31-
}
32-
3327
const GeoIPLookup = () => {
3428
let navigate = useNavigate()
3529
const tenant = useSelector((state) => state.app.currentTenant)
@@ -80,7 +74,7 @@ const GeoIPLookup = () => {
8074
render={({ handleSubmit, submitting, pristine }) => {
8175
return (
8276
<CForm onSubmit={handleSubmit}>
83-
<Field name="domain" validate={isValidTenantInput}>
77+
<Field name="domain">
8478
{({ input, meta }) => {
8579
return (
8680
<>

0 commit comments

Comments
 (0)