From 423c5513063d2d025e8c85ba683daf950e33dc78 Mon Sep 17 00:00:00 2001 From: Toby Date: Tue, 22 Nov 2022 19:49:47 +0000 Subject: [PATCH] chore: bump goproxy version & fix http proxy basic auth realm --- go.mod | 4 ++-- go.sum | 8 ++++---- pkg/http/server.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 0f6dc79..26713f2 100644 --- a/go.mod +++ b/go.mod @@ -8,8 +8,8 @@ require ( github.com/caddyserver/certmagic v0.17.2 github.com/coreos/go-iptables v0.6.0 github.com/docker/go-units v0.5.0 - github.com/elazarl/goproxy v0.0.0-20220115173737-adb46da277ac - github.com/elazarl/goproxy/ext v0.0.0-20220115173737-adb46da277ac + github.com/elazarl/goproxy v0.0.0-20221015165544-a0805db90819 + github.com/elazarl/goproxy/ext v0.0.0-20221015165544-a0805db90819 github.com/folbricht/routedns v0.1.6-0.20220806202012-361f5b35b4c3 github.com/fsnotify/fsnotify v1.6.0 github.com/google/gopacket v1.1.19 diff --git a/go.sum b/go.sum index b72a8a5..01acf17 100644 --- a/go.sum +++ b/go.sum @@ -78,11 +78,11 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/elazarl/goproxy v0.0.0-20220115173737-adb46da277ac h1:XDAn206aIqKPdF5YczuuJXSQPx+WOen0Pxbxp5Fq8Pg= -github.com/elazarl/goproxy v0.0.0-20220115173737-adb46da277ac/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= +github.com/elazarl/goproxy v0.0.0-20221015165544-a0805db90819 h1:RIB4cRk+lBqKK3Oy0r2gRX4ui7tuhiZq2SuTtTCi0/0= +github.com/elazarl/goproxy v0.0.0-20221015165544-a0805db90819/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= -github.com/elazarl/goproxy/ext v0.0.0-20220115173737-adb46da277ac h1:9yrT5tmn9Zc0ytWPASlaPwQfQMQYnRf0RSDe1XvHw0Q= -github.com/elazarl/goproxy/ext v0.0.0-20220115173737-adb46da277ac/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= +github.com/elazarl/goproxy/ext v0.0.0-20221015165544-a0805db90819 h1:PBc3oUutXxwCibSLQCmpunGvruDnoS6kdnaL7a0xwKY= +github.com/elazarl/goproxy/ext v0.0.0-20221015165544-a0805db90819/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= diff --git a/pkg/http/server.go b/pkg/http/server.go index fe19e4e..99d9a26 100644 --- a/pkg/http/server.go +++ b/pkg/http/server.go @@ -81,7 +81,7 @@ func NewProxyHTTPServer(hyClient *core.Client, transport *transport.ClientTransp } proxy.ConnectDial = nil if basicAuthFunc != nil { - auth.ProxyBasic(proxy, "hysteria client", basicAuthFunc) + auth.ProxyBasic(proxy, "hysteria", basicAuthFunc) } return proxy, nil }