enable accept aggressive nomination by default (#644)
This commit is contained in:
+3
-3
@@ -68,9 +68,9 @@ rtc:
|
|||||||
# - en0
|
# - en0
|
||||||
# excludes:
|
# excludes:
|
||||||
# - docker0
|
# - docker0
|
||||||
# # accept ice aggressive nomination, when set to true, server will accept client's aggressive nomination to update
|
# # some clients like chrome use aggressive nomination in special network environment to update selected candidate pair,
|
||||||
# # selected candidate pair. This is useful when client has aggressive nomination in special network environment.
|
# # by default server will accept the updated nomination. If get problem with this, set to true to reject ice aggressive nomination
|
||||||
# accept_aggressive_nomination: true
|
# reject_aggressive_nomination: true
|
||||||
|
|
||||||
# when enabled, LiveKit will expose prometheus metrics on :6789/metrics
|
# when enabled, LiveKit will expose prometheus metrics on :6789/metrics
|
||||||
# prometheus_port: 6789
|
# prometheus_port: 6789
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ type RTCConfig struct {
|
|||||||
UseExternalIP bool `yaml:"use_external_ip"`
|
UseExternalIP bool `yaml:"use_external_ip"`
|
||||||
UseICELite bool `yaml:"use_ice_lite,omitempty"`
|
UseICELite bool `yaml:"use_ice_lite,omitempty"`
|
||||||
Interfaces InterfacesConfig `yaml:"interfaces"`
|
Interfaces InterfacesConfig `yaml:"interfaces"`
|
||||||
AcceptAggressiveNomination bool `yaml:"accept_aggressive_nomination"`
|
RejectAggressiveNomination bool `yaml:"reject_aggressive_nomination"`
|
||||||
|
|
||||||
// Number of packets to buffer for NACK
|
// Number of packets to buffer for NACK
|
||||||
PacketBufferSize int `yaml:"packet_buffer_size,omitempty"`
|
PacketBufferSize int `yaml:"packet_buffer_size,omitempty"`
|
||||||
|
|||||||
+1
-1
@@ -189,7 +189,7 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if rtcConf.AcceptAggressiveNomination {
|
if !rtcConf.RejectAggressiveNomination {
|
||||||
s.SetICEAcceptAggressiveNomination(true)
|
s.SetICEAcceptAggressiveNomination(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user