From 14dd066d80f4c6c6b1061e8e6142bf18f83b97bb Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Tue, 17 Sep 2024 22:30:29 +0700 Subject: [PATCH] send port always --- .../commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt index 234e359031..f09a8935e2 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt @@ -3642,9 +3642,7 @@ data class NetworkProxy( if (host != "localhost") { res += if (host.contains(':')) "[${host.trim(' ', '[', ']')}]" else host.trim() } - if (port != 9050 || res.isEmpty()) { - res += ":$port" - } + res += ":$port" return res } }