Skip to content

Commit

Permalink
Fix FB and Wiki URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
fanquake committed Jun 17, 2015
1 parent 53353e3 commit 91e5a48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AppController.m
Expand Up @@ -854,7 +854,7 @@ - (void)setBlockLength:(int)blockLength {
} }


- (IBAction)openFAQ:(id)sender { - (IBAction)openFAQ:(id)sender {
NSURL *url=[NSURL URLWithString: @"https://github.com/slambert/selfcontrol/wiki/FAQ#q-selfcontrols-timer-is-at-0000-and-i-cant-start-a-new-block-and-im-freaking-out"]; NSURL *url=[NSURL URLWithString: @"https://github.com/SelfControlApp/selfcontrol/wiki/FAQ#q-selfcontrols-timer-is-at-0000-and-i-cant-start-a-new-block-and-im-freaking-out"];
[[NSWorkspace sharedWorkspace] openURL: url]; [[NSWorkspace sharedWorkspace] openURL: url];
} }


Expand Down
2 changes: 1 addition & 1 deletion BlockManager.m
Expand Up @@ -260,7 +260,7 @@ - (NSArray*)commonSubdomainsForHostName:(NSString*)hostName {
// users will often forget to block some of its many mirror subdomains that resolve // users will often forget to block some of its many mirror subdomains that resolve
// to different IPs, i.e. hs.facebook.com. Thanks to Danielle for raising this issue. // to different IPs, i.e. hs.facebook.com. Thanks to Danielle for raising this issue.
if([hostName hasSuffix: @"facebook.com"]) { if([hostName hasSuffix: @"facebook.com"]) {
// pulled list of facebook IP ranges from https://developers.facebook.com/docs/ApplicationSecurity/#facebook_scraper // pulled list of facebook IP ranges from https://developers.facebook.com/docs/sharing/webmasters/crawler
// TODO: pull these automatically by running: // TODO: pull these automatically by running:
// whois -h whois.radb.net -- '-i origin AS32934' | grep ^route // whois -h whois.radb.net -- '-i origin AS32934' | grep ^route
NSArray* facebookIPs = @[@"31.13.24.0/21", NSArray* facebookIPs = @[@"31.13.24.0/21",
Expand Down

0 comments on commit 91e5a48

Please sign in to comment.