policy.go policy_test.go protocol.go protocol_test.go tlv.go tlv_test.go v1.go v1_test.go v2.go v2_test.go version_cmd.go version_cmd_test.go Breadcrumbs go-proxyproto / go.mod Latest commit dependabot[bot]and pires build(deps): bump golang.org/x/net from 0.17.0 to 0.23....
go.mod protocol.go protocol_test.go proxyproto This library provides theproxyprotopackage which can be used for servers listening behind HAProxy of Amazon ELB load balancers. Those load balancers support the use of a proxy protocol (http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt)...
http""time""github.com/pires/go-proxyproto")funcmain() {server:=http.Server{Addr:":8080", }ln,err:=net.Listen("tcp",server.Addr)iferr!=nil{panic(err) }proxyListener:=&proxyproto.Listener{Listener:ln,ReadHeaderTimeout:10*time.Second, }deferproxyListener.Close()server.Serve(proxyListener...
"github.com/pires/go-proxyproto" h2proxy "github.com/pires/go-proxyproto/helper/http2" ) // TODO: add httpclient example @@ -35,5 +36,8 @@ func main() { } defer proxyListener.Close() server.Serve(proxyListener) // Create an HTTP server which can handle proxied incoming connections...
Some manual logic is necessary to handle HTTP/2 upgrades, e.g. https://git.sr.ht/~emersion/kimchi/tree/master/item/server.go#L175 Would it be desirable to host this glue code in go-proxyproto so that users can easily fire up an HTTP server with HTTP/2 upgrade support? 👍1 ...
A Go library implementation of the PROXY protocol, versions 1 and 2. - Release v0.8.0 · pires/go-proxyproto
A Go library implementation of the PROXY protocol, versions 1 and 2. - tests: make linter happy · pires/go-proxyproto@15e863f
A platform for building proxies to bypass network restrictions. - Chore: bump github.com/pires/go-proxyproto from 0.7.0 to 0.8.0 (#3183) · zdevt/v2ray-core@046f6a6
pires / go-proxyproto Public Sponsor Notifications Fork 109 Star 487 Code Issues 9 Pull requests 3 Actions Security Insights New issue keep listener after erroring with invalid upstream #117 Closed pires wants to merge 1 commit into main from feat/keep_listening_when_upstream_not_...
gitea/modules/httplib/url.go Line 36 in 06f1065 func getRequestScheme(req *http.Request) string { "X-Forwarded-Proto": "https" "X-Forwarded-Host": "git.mydomain.de" "X-FORWARDED-PROTOCOL": "https" "X-URL-SCHEME": "https" But default merge commit message and avatar urls keep th...