fix rtc listen port conflict for origin2/3 conf (#4186)

## Cause
`rtc_server.listen` conflict for conf `origin[1,2,3]-for-proxy.conf`

## How to reproduce?
follow the tutorial
`https://ossrs.net/lts/en-us/docs/v7/doc/origin-cluster`.
The webrtc play not works, when start more than one origin srs server.

Co-authored-by: Winlin <winlinvip@gmail.com>
This commit is contained in:
Jacob Su
2025-08-12 09:33:51 +08:00
committed by GitHub
parent 339897e0c7
commit a59d172005
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ http_api {
}
rtc_server {
enabled on;
listen 8001; # UDP port
listen 8002; # UDP port
# @see https://ossrs.io/lts/en-us/docs/v7/doc/webrtc#config-candidate
candidate $CANDIDATE;
}

View File

@@ -15,7 +15,7 @@ http_api {
}
rtc_server {
enabled on;
listen 8001; # UDP port
listen 8003; # UDP port
# @see https://ossrs.io/lts/en-us/docs/v7/doc/webrtc#config-candidate
candidate $CANDIDATE;
}