add proxy protocol support for relay tunnel and rtcp

This commit is contained in:
ginuerzh committed 2023-10-08 19:49:03 +08:00
1 parent 07db20c9a8
commit 6a36ebcc9f
9 files changed
+83 -33

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ func (p *bindListener) getPeerConn(conn net.Conn) (net.Conn, error) {
}
var address, host string
// the first addr is the client address, the optional second addr is the target host address.
for _, f := range resp.Features {
if f.Type() == relay.FeatureAddr {
if fa, ok := f.(*relay.AddrFeature); ok {