diff --git a/Reachability.m b/Reachability.m index 7b09278..924f8d8 100644 --- a/Reachability.m +++ b/Reachability.m @@ -101,14 +101,9 @@ @implementation Reachability #pragma mark - Class Constructor Methods +(Reachability*)reachabilityWithHostName:(NSString*)hostname -{ - return [Reachability reachabilityWithHostname:hostname]; -} - -+(Reachability*)reachabilityWithHostname:(NSString*)hostname { SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithName(NULL, [hostname UTF8String]); - if (ref) + if (ref) { id reachability = [[self alloc] initWithReachabilityRef:ref]; @@ -119,7 +114,7 @@ +(Reachability*)reachabilityWithHostname:(NSString*)hostname #endif } - + return nil; }