From a315490f7d4d2aa8b5226ea4029cb112edb88137 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 4 Jul 2023 11:45:21 -0700 Subject: [PATCH] proxy to master uses http address fix https://github.com/seaweedfs/seaweedfs/issues/4607 --- weed/server/master_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/master_server.go b/weed/server/master_server.go index bed4119d3..2489aaefd 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -225,7 +225,7 @@ func (ms *MasterServer) proxyToLeader(f http.HandlerFunc) http.HandlerFunc { // get the current raft leader leaderAddr, _ := ms.Topo.MaybeLeader() - raftServerLeader := string(leaderAddr) + raftServerLeader := leaderAddr.ToHttpAddress() if raftServerLeader == "" { f(w, r) return