From 0c59290bd94edb57fcf38279e03592a62e291bf8 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 5 Feb 2024 18:37:18 +0200 Subject: [PATCH] return hostname from request --- src/server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.php b/src/server.php index 6d45b68..e301100 100644 --- a/src/server.php +++ b/src/server.php @@ -362,7 +362,7 @@ $server->setHandler( '~URL:base~', sprintf( 'gemini://%s%s/', - $config->gemini->server->host, + $request->getHost(), $config->gemini->server->port == 1965 ? null : ':' . $config->gemini->server->port ) );