Skip to content

Commit

Permalink
set host and port from client if available
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Mar 1, 2024
1 parent 0dc60bd commit 9ae6018
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ae6018

Please sign in to comment.