quic-go / masque-go

MASQUE: Proxying UDP in HTTP/3, RFC 9298
MIT License
81 stars 9 forks source link

pass more information to `Proxy.DialTarget` #39

Closed marten-seemann closed 4 months ago

marten-seemann commented 4 months ago

Applications might want to know which client they're establishing a connection for, for example.

marten-seemann commented 4 months ago

With #40, we now have two ways to achieve this:

  1. Attach information to the DialTarget context.
  2. Add a new parameter to the DialTarget callback.
marten-seemann commented 4 months ago

Actually, the application can do it all by itself. This is pretty neat!

Here's how it works: