about summary refs log tree commit diff stats
path: root/adapter/protocol/gopher.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-02 12:41:00 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-02 13:33:18 +0100
commit8c99938d27afedea3f4f93d5b21e4148ca535af4 (patch)
treeaa5f9eb0d01d23e26c727a4921a88c475e8b9601 /adapter/protocol/gopher.nim
parent86a93ce37d1768d2bee6c12ef62c97d9f2428b50 (diff)
downloadchawan-8c99938d27afedea3f4f93d5b21e4148ca535af4.tar.gz
protocol: sandbox more network processes + fix some gemini bugs
Diffstat (limited to 'adapter/protocol/gopher.nim')
-rw-r--r--adapter/protocol/gopher.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/adapter/protocol/gopher.nim b/adapter/protocol/gopher.nim
index b97ced2b..218e2da4 100644
--- a/adapter/protocol/gopher.nim
+++ b/adapter/protocol/gopher.nim
@@ -27,6 +27,7 @@ Content-Type: text/html
 proc loadRegular(os: PosixStream; t: GopherType; path: var string;
     host, port, query: string) =
   let ps = os.connectSocket(host, port)
+  enterNetworkSandbox()
   if query != "":
     path &= '\t'
     path &= query