about summary refs log tree commit diff stats
path: root/src/display/client.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/client.nim')
-rw-r--r--src/display/client.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/display/client.nim b/src/display/client.nim
index 5134f130..f7e89b78 100644
--- a/src/display/client.nim
+++ b/src/display/client.nim
@@ -566,7 +566,11 @@ proc newClient*(config: Config, dispatcher: Dispatcher): Client =
   result.config = config
   result.dispatcher = dispatcher
   result.attrs = getWindowAttributes(stdout)
-  result.loader = dispatcher.forkserver.newFileLoader()
+  let forkserver = dispatcher.forkserver
+  result.loader = forkserver.newFileLoader(
+    proxy = config.getProxy(),
+    acceptProxy = true
+  )
   result.jsrt = newJSRuntime()
   result.jsrt.setInterruptHandler(interruptHandler, cast[pointer](result))
   JS_SetModuleLoaderFunc(result.jsrt, normalizeModuleName, clientLoadJSModule,