Skip to content

Commit 17f9e9f

Browse files
committed
Fix proxy exception. #73
1 parent 92ddb11 commit 17f9e9f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Fix proxy exception. #73
6+
57
## 0.34.0
68

79
- Support custom UX details/summary for MCP tools. #67

src/eca/proxy.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
(System/setProperty "http.proxyHost" (.getHost url))
1414
(let [port (.getPort url)]
1515
(when (not= -1 port)
16-
(System/setProperty "http.proxyPort" (.getPort url)))))
16+
(System/setProperty "http.proxyPort" (str (.getPort url))))))
1717
(when-let [^URL url (try (some-> (not-empty (config/get-env "HTTPS_PROXY"))
1818
(URL.))
1919
(catch Exception _ nil))]
2020
(System/setProperty "https.proxyHost" (.getHost url))
2121
(let [port (.getPort url)]
2222
(when (not= -1 port)
23-
(System/setProperty "https.proxyPort" (.getPort url))))))
23+
(System/setProperty "https.proxyPort" (str (.getPort url)))))))

0 commit comments

Comments
 (0)