Skip to content

Commit

Permalink
ip port conact
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwenfeng committed Jul 3, 2024
1 parent 79e1a90 commit c22361b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weed/server/volume_server_handlers_read.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
}
if vs.ReadMode == "proxy" {
// proxy client request to target server
localUrl := fmt.Sprintf("%s:%d", vs.store.Ip, vs.store.Port)
var proxyIp string
for _, loc := range lookupResult.Locations {
if vs.store.Ip == loc.Url {
if localUrl == loc.Url {
continue
}
proxyIp = loc.Url
Expand Down

0 comments on commit c22361b

Please sign in to comment.