From 9ae601872ade567759405b6f02b48e4cde9415f7 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Fri, 1 Mar 2024 21:32:20 +0000 Subject: [PATCH] set host and port from client if available --- src/omero/gateway/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/omero/gateway/__init__.py b/src/omero/gateway/__init__.py index 2a4f1fdfb..3b6850f28 100644 --- a/src/omero/gateway/__init__.py +++ b/src/omero/gateway/__init__.py @@ -1525,7 +1525,11 @@ def __init__(self, username=None, passwd=None, client_obj=None, group=None, self.ice_config = [os.path.abspath(str(x)) for x in [_f for _f in self.ice_config if _f]] self.host = host + if self.c is not None: + self.host = self.c.getProperty("omero.host") self.port = port + if self.c is not None: + self.port = self.c.getProperty("omero.port") self.secure = secure self.useragent = useragent self.userip = userip