From 2b3e3a5f933920d076254bb4cf8f2409e8b7d58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Font=C3=A1n?= Date: Sat, 18 Nov 2023 00:50:02 +0100 Subject: [PATCH] feat(DEV-Info): Info/help for creating the proxy server of issue #44 --- .../java/pl/lambada/songsync/util/networking/Ktor.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/pl/lambada/songsync/util/networking/Ktor.kt b/app/src/main/java/pl/lambada/songsync/util/networking/Ktor.kt index 93db547..b1dc4e0 100644 --- a/app/src/main/java/pl/lambada/songsync/util/networking/Ktor.kt +++ b/app/src/main/java/pl/lambada/songsync/util/networking/Ktor.kt @@ -5,7 +5,14 @@ import io.ktor.client.engine.cio.CIO import kotlinx.serialization.json.Json object Ktor { - val client = HttpClient(CIO) { + val client = HttpClient(CIO.create { + //Here goes all the Engine config + //TODO: Add proxy support +// proxy = ProxyConfig( +// type = Proxy.Type.SOCKS, +// sa = java.net.InetSocketAddress(3030) +// ) + }) { //In case of adding plugins, add them here }