From ecf0f012b5d6e78fd69cd4482d443efb4b7083ff Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 31 Mar 2020 17:26:32 +0800 Subject: [PATCH] Add comments for RTC candidate. --- trunk/conf/full.conf | 12 ++++++++---- trunk/conf/rtc.conf | 5 ++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/trunk/conf/full.conf b/trunk/conf/full.conf index bf2ec8377..001f27a9b 100644 --- a/trunk/conf/full.conf +++ b/trunk/conf/full.conf @@ -316,11 +316,15 @@ rtc_server { # The udp listen port, we will reuse it for connections. # default: 8080 listen 8000; - # The exposed candidate IP, response in SDP candidate line. - # It can be: - # * Retrieve server IP automatically, specified by stats.network for multiple networks. - # $CANDIDATE Read the IP from ENV variable $EIP, see https://github.com/ossrs/srs/issues/307#issuecomment-599028124 + # The exposed candidate IPs, response in SDP candidate line. It can be: + # * Retrieve server IP automatically, from all network interfaces. + # eth0 Retrieve server IP by specified network interface name. # TODO: Implements it. + # $CANDIDATE Read the IP from ENV variable $EIP, use * if not set, see https://github.com/ossrs/srs/issues/307#issuecomment-599028124 # x.x.x.x A specified IP address or DNS name, which can be access by client such as Chrome. + # You can specific more than one interface name: + # eth0 eth1 Use network interface eth0 and eth1. # TODO: Implements it. + # Also by IP or DNS names: + # 192.168.1.3 10.1.2.3 rtc.me # TODO: Implements it. # default: * candidate *; } diff --git a/trunk/conf/rtc.conf b/trunk/conf/rtc.conf index f4578cec5..608ba3798 100644 --- a/trunk/conf/rtc.conf +++ b/trunk/conf/rtc.conf @@ -23,10 +23,9 @@ rtc_server { # Listen at udp://8000 listen 8000; # - # The $CANDIDATE means fetch from env, if not configed, use default * as bellow. + # The $CANDIDATE means fetch from env, if not configed, use * as default. # - # The * means using IP of network interface stats.network, - # For example, if stats.network=0, then use IP of eth0 as candidate. + # The * means retrieving server IP automatically, from all network interfaces, # @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124 candidate $CANDIDATE; }