mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
proxy to master uses http address
fix https://github.com/seaweedfs/seaweedfs/issues/4607
This commit is contained in:
parent
2aa59ab37c
commit
a315490f7d
|
@ -225,7 +225,7 @@ func (ms *MasterServer) proxyToLeader(f http.HandlerFunc) http.HandlerFunc {
|
||||||
|
|
||||||
// get the current raft leader
|
// get the current raft leader
|
||||||
leaderAddr, _ := ms.Topo.MaybeLeader()
|
leaderAddr, _ := ms.Topo.MaybeLeader()
|
||||||
raftServerLeader := string(leaderAddr)
|
raftServerLeader := leaderAddr.ToHttpAddress()
|
||||||
if raftServerLeader == "" {
|
if raftServerLeader == "" {
|
||||||
f(w, r)
|
f(w, r)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue