Skip to content

Commit

Permalink
bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Jan 10, 2024
1 parent 433a92f commit bc5d817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net/http"
"net/http/httputil"
"net/url"
"path/filepath"
"strings"
)

Expand Down Expand Up @@ -116,7 +117,7 @@ func NewRouter(r Relayer) http.Handler {
return
}
if u != nil {
if strings.HasPrefix(u.Host, "/") {
if filepath.IsAbs(u.Host) {
// Unix domain socket path
pr.Out.Host = pr.In.Host
} else {
Expand Down

0 comments on commit bc5d817

Please sign in to comment.