Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

fix: BSGConnectivity hostName #320

Closed
Closed
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 cocoa/vendor/bugsnag-cocoa/Source/BSGConnectivity.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ @implementation BSGConnectivity
- (instancetype)initWithURL:(NSURL *)url
changeBlock:(ConnectivityChange)changeBlock {
if (self = [super init]) {
NSString *hostName = [url absoluteString];
NSString *hostName = [url host];
_reachabilityRef = SCNetworkReachabilityCreateWithName(NULL, [hostName UTF8String]);

_connectivityChangeBlock = [changeBlock copy];
Expand Down