~int80h/gemserv

Quote the "proxy_all" option v1 APPLIED

Jessica Stokes: 1
 Quote the "proxy_all" option

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~int80h/gemserv/patches/20393/mbox | git am -3
Learn more about email & git

[PATCH] Quote the "proxy_all" option Export this patch

The "proxy_all" option from the sample configuration not being quoted was throwing this error when running the server:

    Config error: invalid TOML value, did you mean to use a quoted string? at line 38 column 13

This patch makes sure the program will run against the included example config.toml.
---
 config.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.toml b/config.toml
index 8d1a9e4..6a3e573 100644
--- a/config.toml
+++ b/config.toml
@@ -35,7 +35,7 @@ usrdir = true
proxy = { path = "localhost:1966" }
# proxy_all is optional
# It will send all requests to the specified server. It also supports streamming.
proxy_all = localhost:1967
proxy_all = "localhost:1967"
# redirect is optional
redirect = { "/redirect" = "/", "/newdomain" = "gemini://example.net" }

-- 
2.24.3 (Apple Git-128)