mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Using 'is_valid_ipaddress' utility function everywhere
This commit is contained in:
parent
d9c84edf9a
commit
3a4641889c
@ -523,8 +523,7 @@ class ServerNode(PGChildNodeView):
|
||||
data['db_res'] = ','.join(data['db_res'])
|
||||
|
||||
if 'hostaddr' in data and data['hostaddr'] and data['hostaddr'] != '':
|
||||
if not self.pat4.match(data['hostaddr']):
|
||||
if not self.pat6.match(data['hostaddr']):
|
||||
if not is_valid_ipaddress(data['hostaddr']):
|
||||
return make_json_response(
|
||||
success=0,
|
||||
status=400,
|
||||
|
Loading…
Reference in New Issue
Block a user