improvement(Desktop): Use system default proxy settings #709

This commit is contained in:
Artem Chepurnoy 2024-11-18 12:21:11 +02:00
parent 3f255bac08
commit 444ee998e7
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ fun main() {
Security.insertProviderAt(BouncyCastleProvider(), 1)
Security.insertProviderAt(BouncyCastleJsseProvider(), 2)
// Allow the app to use system default proxies:
// https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html
System.setProperty("java.net.useSystemProxies", "true")
val kamelConfig = KamelConfig {
this.takeFrom(KamelConfig.Default)
mapper(FaviconUrlMapper)