diff --git a/IRCCloud/Classes/LoginSplashViewController.m b/IRCCloud/Classes/LoginSplashViewController.m index 4058142fb..601812b0b 100644 --- a/IRCCloud/Classes/LoginSplashViewController.m +++ b/IRCCloud/Classes/LoginSplashViewController.m @@ -717,10 +717,10 @@ -(IBAction)loginButtonPressed:(id)sender { NSString *realname = [name.text stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet]; CGFloat nameAlpha = name.alpha; - [[NetworkConnection sharedInstance] requestConfigurationWithHandler:^(IRCCloudJSONObject *config) { #ifndef ENTERPRISE - IRCCLOUD_HOST = @"www.irccloud.com"; + IRCCLOUD_HOST = @"api.irccloud.com"; #endif + [[NetworkConnection sharedInstance] requestConfigurationWithHandler:^(IRCCloudJSONObject *config) { if(!config) { dispatch_async(dispatch_get_main_queue(), ^{ [UIView beginAnimations:nil context:nil]; diff --git a/IRCCloud/Classes/NetworkConnection.m b/IRCCloud/Classes/NetworkConnection.m index d4662f7d6..c55cf6507 100644 --- a/IRCCloud/Classes/NetworkConnection.m +++ b/IRCCloud/Classes/NetworkConnection.m @@ -76,7 +76,7 @@ void FirebaseLog(NSString *format, ...) { #elif defined(ENTERPRISE) NSString *IRCCLOUD_HOST = @""; #else -NSString *IRCCLOUD_HOST = @"www.irccloud.com"; +NSString *IRCCLOUD_HOST = @"api.irccloud.com"; #endif NSString *IRCCLOUD_PATH = @"/"; @@ -2525,7 +2525,7 @@ -(void)_logout:(NSString *)session { if(error) CLS_LOG(@"Unable to delete Firebase ID: %@", error); }]; - IRCCLOUD_HOST = @"www.irccloud.com"; + IRCCLOUD_HOST = @"api.irccloud.com"; [self _postRequest:@"/chat/logout" args:@{@"session":session} handler:nil]; }]; #endif diff --git a/build-scripts/BUILD b/build-scripts/BUILD index acfba6095..83248fb9d 100644 --- a/build-scripts/BUILD +++ b/build-scripts/BUILD @@ -1 +1 @@ -141 \ No newline at end of file +142 \ No newline at end of file