go-proxyproto icon indicating copy to clipboard operation
go-proxyproto copied to clipboard

A Go library implementation of the PROXY protocol, versions 1 and 2.

Results 20 go-proxyproto issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/5595933/181145650-fc15fae2-387e-4a42-88e7-cb6e2fb4e075.png) server code ``` func main() { cert, err := tls.LoadX509KeyPair("cert/xxxx.crt", "cert/xxx.key") if err != nil { log.Println(err) return } config := &tls.Config{ Certificates: []tls.Certificate{cert}} ln, err := tls.Listen("tcp", ":9090",...

`net/http` can't access `PP2_TYPE_ALPN` which is necessary for the HTTP/2 upgrade. 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...

help wanted
question

I was using this library to build a service that terminates TLS and does IP based blocking using the proxy protocol headers. As far I can tell, wrapping the tls...

help wanted
good first issue
tests

This is a follow-up on MR #49 by @emersion . All credits should go to him :) I had a need to parse 4in6 addresses myself as well, so I...

a lightweight protocol developed specifically for UDP https://developers.cloudflare.com/spectrum/how-to/enable-proxy-protocol/#enable-simple-proxy-protocol-for-udp https://developers.cloudflare.com/spectrum/reference/simple-proxy-protocol-header/

enhancement
help wanted

The workflow test.yml is referencing action shogo82148/actions-goveralls using references v1.2.2. However this reference is missing the commit [93213fdb0bf003e512edcc55e1bdca000f7e4d65](https://github.com/shogo82148/actions-goveralls/commits/93213fdb0bf003e512edcc55e1bdca000f7e4d65) which may contain fix to the some vulnerability. The vulnerability fix that...

is it possible to add support for the udp net.PacketConn interface?

help wanted
question

I want to use go-proxyproto with TLS and couldn't find any examples in the repo. Appreciate if you can provide reference code for using go-proxyproto with TLS.

help wanted
documentation
good first issue

And `go vet` doesn't like it ``` Error: ./protocol_test.go:29:4: call to (*T).Fatalf from a non-test goroutine Error: ./protocol_test.go:37:4: call to (*T).Fatalf from a non-test goroutine Error: ./protocol_test.go:40:4: call to (*T).Fatalf...

help wanted
good first issue
tests

For instance, in `protocol_test.go`, there are many repetitions of code that binds to a socket (listen), accepts connections, writes and reads data from each connection. I think these can be...

help wanted
good first issue
tests