Restore proxy support broken by RingRTC m126 merge fixes

This commit is contained in:
Oscar Mira 2024-08-19 18:46:50 +02:00
parent c868f226e4
commit a5e9692673
No known key found for this signature in database
GPG key ID: B371B98C5DC32237
2 changed files with 3 additions and 0 deletions

View file

@ -282,6 +282,7 @@ BasicPortAllocator::CreateIceGatherer(const std::string& name) {
// 4. User setters to set flags and other settings
new_allocator->set_flags(flags());
new_allocator->set_proxy(user_agent(), proxy());
new_allocator->SetPortRange(min_port(), max_port());
new_allocator->set_max_ipv6_networks(max_ipv6_networks());
new_allocator->set_step_delay(step_delay());

View file

@ -320,6 +320,8 @@ class InjectableNetworkImpl : public InjectableNetwork, public rtc::NetworkManag
rtc::AsyncPacketSocket* CreateClientTcpSocket(
const rtc::SocketAddress& local_address,
const rtc::SocketAddress& remote_address,
const rtc::ProxyInfo& proxy_info,
const std::string& user_agent,
const rtc::PacketSocketTcpOptions& tcp_options) override {
// TODO: Support TCP for TURN
return nullptr;