Browse Source

proxy to master uses http address

fix https://github.com/seaweedfs/seaweedfs/issues/4607
pull/4641/head
chrislu 1 year ago
parent
commit
a315490f7d
  1. 2
      weed/server/master_server.go

2
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

Loading…
Cancel
Save