Skip to content

Commit

Permalink
Add INCLUDE_LOOPBACK_CANDIDATE
Browse files Browse the repository at this point in the history
Allow users to enable listening for WebRTC traffic on loopback
  • Loading branch information
Sean-Der committed Jul 26, 2024
1 parent 6790a09 commit 53aa47a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ The backend can be configured with the following environment variables.
- `INTERFACE_FILTER` - Only use a certain interface for UDP traffic
- `NAT_ICE_CANDIDATE_TYPE` - By default setting a NAT_1_TO_1_IP overrides. Set this to `srflx` to instead append IPs
- `STUN_SERVERS` - List of STUN servers delineated by '|'. Useful if Broadcast Box is running behind a NAT
- `INCLUDE_LOOPBACK_CANDIDATE` - Also listen for WebRTC traffic on loopback, disabled by default

- `UDP_MUX_PORT_WHEP` - Like `UDP_MUX_PORT` but only for WHEP traffic
- `UDP_MUX_PORT_WHIP` - Like `UDP_MUX_PORT` but only for WHIP traffic
Expand Down
1 change: 1 addition & 0 deletions internal/webrtc/webrtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ func createSettingEngine(isWHIP bool, udpMuxCache map[int]*ice.MultiUDPMuxDefaul
settingEngine.SetNetworkTypes(networkTypes)
settingEngine.DisableSRTCPReplayProtection(true)
settingEngine.DisableSRTPReplayProtection(true)
settingEngine.SetIncludeLoopbackCandidate(os.Getenv("INCLUDE_LOOPBACK_CANDIDATE") != "")

return
}
Expand Down

0 comments on commit 53aa47a

Please sign in to comment.