Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Always assume en0 is the WiFi interface #864

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ typedef NS_ENUM(NSUInteger, FBUIInterfaceAppearance) {
- (nullable NSData *)fb_screenshotWithError:(NSError*__autoreleasing*)error;

/**
Returns device current wifi ip4 address
Returns device's current wifi ip4 address
*/
- (nullable NSString *)fb_wifiIPAddress;

Expand Down
2 changes: 1 addition & 1 deletion WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ - (NSString *)fb_wifiIPAddress
continue;
}
NSString *interfaceName = [NSString stringWithUTF8String:temp_addr->ifa_name];
if(![interfaceName containsString:@"en"]) {
if(![interfaceName isEqualToString:@"en0"]) {
temp_addr = temp_addr->ifa_next;
continue;
}
Expand Down
Loading