From 2326a13f49965a799751ab6a792dd88ed60d1982 Mon Sep 17 00:00:00 2001 From: Garet Halliday <me@garet.holiday> Date: Wed, 24 Apr 2024 19:36:00 -0500 Subject: [PATCH] ....... --- .../discovery/discoverers/digitalocean/discoverer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/gat/handlers/discovery/discoverers/digitalocean/discoverer.go b/lib/gat/handlers/discovery/discoverers/digitalocean/discoverer.go index 7763289d..557aa220 100644 --- a/lib/gat/handlers/discovery/discoverers/digitalocean/discoverer.go +++ b/lib/gat/handlers/discovery/discoverers/digitalocean/discoverer.go @@ -69,9 +69,9 @@ func (T *Discoverer) Clusters() ([]discovery.Cluster, error) { var primaryAddr string if T.Private { - primaryAddr = net.JoinHostPort(cluster.PrivateConnection.Host, strconv.Itoa(cluster.PrivateConnection.Port)) + primaryAddr = net.JoinHostPort(cluster.PrivateConnection.Host+".", strconv.Itoa(cluster.PrivateConnection.Port)) } else { - primaryAddr = net.JoinHostPort(cluster.Connection.Host, strconv.Itoa(cluster.Connection.Port)) + primaryAddr = net.JoinHostPort(cluster.Connection.Host+".", strconv.Itoa(cluster.Connection.Port)) } c := discovery.Cluster{ @@ -108,9 +108,9 @@ func (T *Discoverer) Clusters() ([]discovery.Cluster, error) { var replicaAddr string if T.Private { - replicaAddr = net.JoinHostPort(replica.PrivateConnection.Host, strconv.Itoa(replica.PrivateConnection.Port)) + replicaAddr = net.JoinHostPort(replica.PrivateConnection.Host+".", strconv.Itoa(replica.PrivateConnection.Port)) } else { - replicaAddr = net.JoinHostPort(replica.Connection.Host, strconv.Itoa(replica.Connection.Port)) + replicaAddr = net.JoinHostPort(replica.Connection.Host+".", strconv.Itoa(replica.Connection.Port)) } c.Replicas[replica.ID] = discovery.Node{ Address: replicaAddr, -- GitLab