Skip to content

Commit 83dbaf6

Browse files
authored
Merge pull request #28 from ant-zuev/connect_server_with_port
Fix failed connection to the server to the specified port.
2 parents 7bb33ab + 1ab4d6a commit 83dbaf6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/firebird/driver/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5550,10 +5550,13 @@ def connect_server(server: str, *, user: str=None, password: str=None,
55505550
host = server or None
55515551
else:
55525552
host = srv_config.host.value
5553+
port = srv_config.port.value
55535554
if host is None:
55545555
host = 'service_mgr'
55555556
if not host.endswith('service_mgr'):
55565557
if host and not host.endswith(':'):
5558+
if port:
5559+
host += f"/{port}"
55575560
host += ':'
55585561
host += 'service_mgr'
55595562
if user is None:

0 commit comments

Comments
 (0)