diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-23 12:50:28 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-23 12:50:28 +0800 |
commit | ee6d4c0b46cc3107c4e250cdebd289dcac7add26 (patch) | |
tree | 013614c335a69c92731bb146c87ee9d9c257d6c7 | |
parent | Use a global struct with version and source info (diff) | |
download | powxy-ee6d4c0b46cc3107c4e250cdebd289dcac7add26.tar.gz powxy-ee6d4c0b46cc3107c4e250cdebd289dcac7add26.tar.zst powxy-ee6d4c0b46cc3107c4e250cdebd289dcac7add26.zip |
Fix source URL
-rw-r--r-- | flags.go | 2 | ||||
-rw-r--r-- | tmpl.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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") @@ -72,7 +72,7 @@ Please note that if your submission is successful, you will be given a cookie th <pre>` + html.EscapeString(solverProgram) + `</pre> </details> <p> -Powxy is free software: you can redistribute it and/or modify it under the terms of the <a href="https://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License, version 3</a>, as published by the Free Software Foundation. Powxy is distributed in the hope that it will be useful, but <strong>without any warranty</strong>; without even the implied warranty of <strong>merchantability</strong> or <strong>fitness for a particular purpose</strong>. 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 <a href="https://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License, version 3</a>, as published by the Free Software Foundation. Powxy is distributed in the hope that it will be useful, but <strong>without any warranty</strong>; without even the implied warranty of <strong>merchantability</strong> or <strong>fitness for a particular purpose</strong>. See the GNU Affero General Public License for more details. You may wish to view the <a href="{{ .Global.SourceURL }}">source code</a>. </p> </body> <script> |