|
@ -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 |
|
|