Skip to content

Commit ada12f4

Browse files
committed
update the links to correctly access the ports
1 parent 060c234 commit ada12f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/main/java/org/xmtp/android/library/ApiClient.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ data class GRPCApiClient(
9191
private val channel: ManagedChannel =
9292
Grpc.newChannelBuilderForAddress(
9393
environment.getValue(),
94-
5556,
94+
if (environment == XMTPEnvironment.LOCAL) 5556 else 443,
9595
if (secure) {
9696
TlsChannelCredentials.create()
9797
} else {

library/src/main/java/org/xmtp/android/library/XMTPEnvironment.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package org.xmtp.android.library
22

33
enum class XMTPEnvironment(val rawValue: String) {
4-
DEV("grpc.dev.xmtp.network:443"),
5-
PRODUCTION("grpc.production.xmtp.network:443"),
4+
DEV("grpc.dev.xmtp.network"),
5+
PRODUCTION("grpc.production.xmtp.network"),
66
LOCAL("10.0.2.2") {
77
override fun withValue(value: String): XMTPEnvironment {
88
return LOCAL.apply { customValue = value }

0 commit comments

Comments
 (0)