Use HTTP for default session open group server
This commit is contained in:
parent
edd9139fe0
commit
fac376bf55
|
@ -6,7 +6,7 @@ public final class OpenGroupAPIV2 : NSObject {
|
||||||
private static var authTokenPromises: [String:Promise<String>] = [:]
|
private static var authTokenPromises: [String:Promise<String>] = [:]
|
||||||
|
|
||||||
public static var moderators: [String:[String:Set<String>]] = [:] // Server URL to room ID to set of moderator IDs
|
public static var moderators: [String:[String:Set<String>]] = [:] // Server URL to room ID to set of moderator IDs
|
||||||
public static let defaultServer = "https://sessionopengroup.com"
|
public static let defaultServer = "http://sessionopengroup.com"
|
||||||
public static let defaultServerPublicKey = "658d29b91892a2389505596b135e76a53db6e11d613a51dbd3d0816adffb231b"
|
public static let defaultServerPublicKey = "658d29b91892a2389505596b135e76a53db6e11d613a51dbd3d0816adffb231b"
|
||||||
public static var defaultRoomsPromise: Promise<[Info]>?
|
public static var defaultRoomsPromise: Promise<[Info]>?
|
||||||
public static var groupImagePromises: [String:Promise<Data>] = [:]
|
public static var groupImagePromises: [String:Promise<Data>] = [:]
|
||||||
|
|
|
@ -49,7 +49,8 @@ internal extension OnionRequestAPI {
|
||||||
let snodeED25519PublicKey = snode.publicKeySet.ed25519Key
|
let snodeED25519PublicKey = snode.publicKeySet.ed25519Key
|
||||||
parameters = [ "destination" : snodeED25519PublicKey ]
|
parameters = [ "destination" : snodeED25519PublicKey ]
|
||||||
case .server(let host, let target, _):
|
case .server(let host, let target, _):
|
||||||
parameters = [ "host" : host, "target" : target, "method" : "POST" ]
|
// FIXME: protocol and port shouldn't be hardcoded
|
||||||
|
parameters = [ "host" : host, "target" : target, "method" : "POST", "protocol" : "http", "port" : 80 ]
|
||||||
}
|
}
|
||||||
parameters["ephemeral_key"] = previousEncryptionResult.ephemeralPublicKey.toHexString()
|
parameters["ephemeral_key"] = previousEncryptionResult.ephemeralPublicKey.toHexString()
|
||||||
let x25519PublicKey: String
|
let x25519PublicKey: String
|
||||||
|
|
Loading…
Reference in New Issue