From 0e0af9afa5aa2e7be3e836e54ef4ce1b3060e043 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 10 May 2021 14:41:14 +0000 Subject: [PATCH] add pid/eid/gid Signed-off-by: Christine Dodrill --- gemini.moon | 4 ++++ mipha.moon | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gemini.moon b/gemini.moon index 3252ab4..73d0b76 100644 --- a/gemini.moon +++ b/gemini.moon @@ -16,11 +16,15 @@ class Server @cq\wrap -> with conn _, ip = \peername! + pid, uid, gid = \peerpid!, \peereid! request = \read "*l" \shutdown "r" u = url.parse request ctx = :ip + :pid + :uid + :gid host: u.host path: u.path query: u.query diff --git a/mipha.moon b/mipha.moon index ab461aa..7186c0e 100644 --- a/mipha.moon +++ b/mipha.moon @@ -13,9 +13,9 @@ class ProxyRequestRefusedHandler with gemini.Server ProxyRequestRefusedHandler! \listen socket.listen "127.0.0.1", "58816" - -- \listen socket.listen - -- path: "./var/mipha.sock" - -- unlink: true + \listen socket.listen + path: "./var/mipha.sock" + unlink: true \attach cq assert cq\loop!