From ee6d4c0b46cc3107c4e250cdebd289dcac7add26 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 23 Mar 2025 12:50:28 +0800 Subject: Fix source URL --- flags.go | 2 +- tmpl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flags.go b/flags.go index 8b16708..642cec8 100644 --- a/flags.go +++ b/flags.go @@ -13,7 +13,7 @@ var ( func init() { flag.UintVar(&global.NeedBits, "difficulty", 17, "leading zero bits required for the challenge") - flag.StringVar(&global.SourceURL, "source", "https://https://forge.lindenii.runxiyu.org/powxy/:/repos/powxy/", "url to the source code") + flag.StringVar(&global.SourceURL, "source", "https://forge.lindenii.runxiyu.org/powxy/:/repos/powxy/", "url to the source code") flag.StringVar(&listenAddr, "listen", ":8081", "address to listen on") flag.StringVar(&destHost, "upstream", "http://127.0.0.1:8080", "destination url base to proxy to") flag.BoolVar(&secondary, "secondary", false, "trust X-Forwarded-For headers") diff --git a/tmpl.go b/tmpl.go index a2e2c5b..7e42169 100644 --- a/tmpl.go +++ b/tmpl.go @@ -72,7 +72,7 @@ Please note that if your submission is successful, you will be given a cookie th
` + html.EscapeString(solverProgram) + `

-Powxy is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. Powxy is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU Affero General Public License for more details. The source code is available at {{ .Global.SourceURL }} +Powxy is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. Powxy is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU Affero General Public License for more details. You may wish to view the source code.