add proxy protocol support for relay tunnel and rtcp
This commit is contained in:
1 parent
07db20c9a8
commit
6a36ebcc9f
9 files changed
+83
-33
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user