Skip to content

Commit 77abfd0

Browse files
authored
Merge pull request pterodactyl#2780 from danny6167/patch-1
Allow 0 in first octet of database client IP address Fixes pterodactyl#2779
2 parents 2b5d5c9 + b97ebcb commit 77abfd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/scripts/components/server/databases/CreateDatabaseButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const schema = object().shape({
2424
.matches(/^[A-Za-z0-9_\-.]{3,48}$/, 'Database name should only contain alphanumeric characters, underscores, dashes, and/or periods.'),
2525
connectionsFrom: string()
2626
.required('A connection value must be provided.')
27-
.matches(/^([1-9]{1,3}|%)(\.([0-9]{1,3}|%))?(\.([0-9]{1,3}|%))?(\.([0-9]{1,3}|%))?$/, 'A valid connection address must be provided.'),
27+
.matches(/^([0-9]{1,3}|%)(\.([0-9]{1,3}|%))?(\.([0-9]{1,3}|%))?(\.([0-9]{1,3}|%))?$/, 'A valid connection address must be provided.'),
2828
});
2929

3030
export default () => {

0 commit comments

Comments
 (0)