mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-16 08:25:18 +02:00
fix(webRTC): LAN IP filtering (#333)
* fix webRTC voice call for LAN setup * log re-add * refactor: extract ICE candidate filtering policy * fix: decouple relay-only diagnostics from LAN TURN setup * fix: fix remote_up script --------- Co-authored-by: deepashreeKedia <kediadeepashree2@gmail.com> Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
This commit is contained in:
parent
8484e4bfaf
commit
af66372b65
6 changed files with 190 additions and 62 deletions
|
|
@ -167,6 +167,7 @@ if ([string]::IsNullOrEmpty($env:ENABLE_COTURN)) {
|
|||
$UseCoturn = Test-IsEnabled $EnableCoturn
|
||||
$TurnHost = $env:TURN_HOST
|
||||
$TurnSecret = $env:TURN_SECRET
|
||||
$ForceTurnRelay = if ([string]::IsNullOrEmpty($env:FORCE_TURN_RELAY)) { 'false' } else { $env:FORCE_TURN_RELAY }
|
||||
|
||||
if ($UseCoturn) {
|
||||
$defaultTurnHost = Get-DefaultLanIPv4
|
||||
|
|
@ -208,6 +209,7 @@ Write-Host " Coturn: $EnableCoturn" -ForegroundColor Blue
|
|||
if ($UseCoturn) {
|
||||
Write-Host " TURN Host: $TurnHost" -ForegroundColor Blue
|
||||
Write-Host ' TURN Secret: ********' -ForegroundColor Blue
|
||||
Write-Host " Force relay: $ForceTurnRelay" -ForegroundColor Blue
|
||||
}
|
||||
Write-Host " Telemetry: $EnableTelemetry" -ForegroundColor Blue
|
||||
Write-Host " Registry: $Registry" -ForegroundColor Blue
|
||||
|
|
@ -251,6 +253,9 @@ $envLines = @(
|
|||
''
|
||||
'# Telemetry (set to false to disable)'
|
||||
"ENABLE_TELEMETRY=$EnableTelemetry"
|
||||
''
|
||||
'# Relay-only ICE candidates for explicit TURN diagnostics'
|
||||
"FORCE_TURN_RELAY=$ForceTurnRelay"
|
||||
)
|
||||
|
||||
if ($UseCoturn) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue