diff --git a/pyTigerGraph/pyTigerGraphBase.py b/pyTigerGraph/pyTigerGraphBase.py index 4cd5a27d..bbb0fea9 100644 --- a/pyTigerGraph/pyTigerGraphBase.py +++ b/pyTigerGraph/pyTigerGraphBase.py @@ -185,7 +185,7 @@ def __init__(self, host: str = "http://127.0.0.1", graphname: str = "MyGraph", restppPort = str(restppPort) sslPort = str(sslPort) - if self.tgCloud and (restppPort == "9000" or restppPort == "443"): + if (self.tgCloud and (restppPort == "9000" or restppPort == "443")) or (restppPort == gsPort): self.restppPort = sslPort self.restppUrl = self.host + ":" + sslPort + "/restpp" else: