mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure the host parameter is correctly pickup up from the service file. Fixes #3200
This commit is contained in:
committed by
Dave Page
parent
60893bcdd1
commit
34f1ebc88e
@@ -500,7 +500,7 @@ class ServerNode(PGChildNodeView):
|
||||
if 'db_res' in data:
|
||||
data['db_res'] = ','.join(data['db_res'])
|
||||
|
||||
if 'hostaddr' in data and data['hostaddr'] != '':
|
||||
if 'hostaddr' in data and data['hostaddr'] and data['hostaddr'] != '':
|
||||
if not self.pat4.match(data['hostaddr']):
|
||||
if not self.pat6.match(data['hostaddr']):
|
||||
return make_json_response(
|
||||
@@ -700,7 +700,7 @@ class ServerNode(PGChildNodeView):
|
||||
)
|
||||
)
|
||||
|
||||
if 'hostaddr' in data and data['hostaddr'] != '':
|
||||
if 'hostaddr' in data and data['hostaddr'] and data['hostaddr'] != '':
|
||||
if not self.pat4.match(data['hostaddr']):
|
||||
if not self.pat6.match(data['hostaddr']):
|
||||
return make_json_response(
|
||||
|
||||
Reference in New Issue
Block a user