Remove Port from registry

This commit is contained in:
Asim Aslam
2019-07-08 08:01:42 +01:00
parent 5b7454e5a8
commit e0bf1c2283
35 changed files with 92 additions and 228 deletions

View File

@@ -2,7 +2,6 @@ package http
import (
"errors"
"fmt"
"net/http"
"github.com/micro/go-micro/client/selector"
@@ -28,7 +27,7 @@ func (r *roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
if err != nil {
continue
}
req.URL.Host = fmt.Sprintf("%s:%d", n.Address, n.Port)
req.URL.Host = n.Address
w, err := r.rt.RoundTrip(req)
if err != nil {
continue