Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumblekit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2017-09-03 19:00:20 +0300
committerMikkel Krautz <mikkel@krautz.dk>2017-09-03 19:01:04 +0300
commitb915c35be0b5c1a57e86e47fba96bc2f26aea2cd (patch)
tree1544fc54748eb80451a45fca83957240117d617e
parent9e9eeab918b07e65671092426b1051bd1bc8736a (diff)
MKServices: use HTTPS for publist service.
-rw-r--r--src/MKServices.m7
-rw-r--r--src/MumbleKit/MKServices.h2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/MKServices.m b/src/MKServices.m
index 9bec157..12bcc6f 100644
--- a/src/MKServices.m
+++ b/src/MKServices.m
@@ -7,10 +7,7 @@
@implementation MKServices
+ (NSString *) regionalServicesHost {
- NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
- NSArray *languages = [defaults objectForKey:@"AppleLanguages"];
- NSString *locale = [languages objectAtIndex:0];
- return [NSString stringWithFormat:@"http://%@.mumble.info", locale];
+ return nil;
}
/*
@@ -18,7 +15,7 @@
*/
+ (NSString *) regionalServerList {
- return [NSString stringWithFormat:@"%@/list2.cgi", [MKServices regionalServicesHost]];
+ return @"https://publist.mumble.info/v1/list";
}
+ (NSURL *) regionalServerListURL {
diff --git a/src/MumbleKit/MKServices.h b/src/MumbleKit/MKServices.h
index d5d4526..b9e319f 100644
--- a/src/MumbleKit/MKServices.h
+++ b/src/MumbleKit/MKServices.h
@@ -9,6 +9,8 @@
@interface MKServices : NSObject
/// Get the hostname of the closest regional services host.
+///
+/// Note: This method is deprecated and always returns nil.
+ (NSString *) regionalServicesHost;
/// Get the URL of the server list on a server near the client's current location.