Skip to content

Commit

Permalink
Fixed issue with missing network interfaces on iOS (#151)
Browse files Browse the repository at this point in the history
Related issue: #148
Cherry-pick :
https://webrtc.googlesource.com/src/+/fea60ef8e72fb17b4f8a5363aff7e63ab8027b4f

Fixed issue with network interfaces due to a missing return value in the
"nw_path_enumerate_interfaces(...)" block. Exposed in iOS 18,
RTCNetworkMonitor::initWithObserver will only enumerate the first
interface, instead of all device interfaces

Bug: webrtc:359245764
Change-Id: Ifb9f28c33306c0096476a4afb0cdb4d734e87b2c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/359541
Auto-Submit: Corby <[email protected]>
Commit-Queue: Jonas Oreland <[email protected]>
Reviewed-by: Kári Helgason <[email protected]>
Reviewed-by: Jonas Oreland <[email protected]>
Cr-Commit-Position: refs/heads/main@{#42818}

Co-authored-by: Corby Hoback <[email protected]>
  • Loading branch information
hiroshihorie and Corby Hoback authored Oct 19, 2024
1 parent c38ce7f commit cd6792e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Christophe Dumez <[email protected]>
Chris Tserng <[email protected]>
Cody Barnes <[email protected]>
Colin Plumb
Corby Hoback <[email protected]>
Cyril Lashkevich <[email protected]>
CZ Theng <[email protected]>
Danail Kirov <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions sdk/objc/components/network/RTCNetworkMonitor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ - (instancetype)initWithObserver:(webrtc::NetworkMonitorObserver *)observer {
RTCLog(@"NW path monitor available interface: %s", name);
rtc::AdapterType adapterType = AdapterTypeFromInterfaceType(interfaceType);
map->insert(std::pair<std::string, rtc::AdapterType>(name, adapterType));
return true;
});
@synchronized(strongSelf) {
webrtc::NetworkMonitorObserver *observer = strongSelf->_observer;
Expand Down

0 comments on commit cd6792e

Please sign in to comment.