diff --git a/example/config.json b/example/config.json index 11aa995..56f6e97 100644 --- a/example/config.json +++ b/example/config.json @@ -15,7 +15,6 @@ }, "url": { - "base":"gemini://..", "source":"http://.." } }, diff --git a/src/server.php b/src/server.php index f16765e..3da490b 100644 --- a/src/server.php +++ b/src/server.php @@ -135,8 +135,9 @@ $server->setHandler( // Append source and homepage link $lines[] = sprintf( - '=> %s %s', - $config->dokuwiki->url->base, + '=> gemini://%s%s %s', + $config->gemini->server->host, + $config->gemini->server->port == 1965 ? null : ':' . $config->gemini->server->port, $config->string->main );