Skip to content

Commit 9f42288

Browse files
committed
Disable Name Resolution in Proxy Mode
Also excluded netty-all from datomic-free in order to have only one set of Netty JAR's in classpath. Closes: #29
1 parent d2d82fe commit 9f42288

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

project.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
[camel-snake-kebab "0.4.0"]
1414
[cheshire "5.9.0"]
1515
[com.cognitect/anomalies "0.1.12"]
16-
[com.datomic/datomic-free "0.9.5697"]
16+
[com.datomic/datomic-free "0.9.5697"
17+
:exclusions [io.netty/netty-all]]
1718
[com.taoensso/timbre "4.10.0"]
1819
[info.cqframework/cql-to-elm "1.4.6"]
1920
[integrant "0.7.0"]

src/blaze/terminology_service/extern.clj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@
6666
client-middleware/wrap-url
6767
client-middleware/wrap-query-params
6868
client')))))}
69+
70+
;; It's important to disable DNS resolving when in proxy mode, because
71+
;; first it's not necessary and second domain names which are resolvable
72+
;; by the proxy might not resolvable locally. Can be removed when
73+
;; https://github.com/ztellman/aleph/issues/522 is solved.
6974
(seq proxy-options)
70-
(assoc-in [:connection-options :proxy-options] proxy-options))))
75+
(update :connection-options assoc :proxy-options
76+
proxy-options :name-resolver :noop))))
7177

7278

7379
(defn- expand-value-set [base opts params]

0 commit comments

Comments
 (0)