add version show

This commit is contained in:
zu1k
2020-08-23 00:14:00 +08:00
parent 4ee01fbc6d
commit 2e9a2b4281
2 changed files with 6 additions and 3 deletions

View File

@@ -12,6 +12,8 @@ import (
"github.com/zu1k/proxypool/pkg/provider"
)
const version = "v0.3.0"
var router *gin.Engine
func setupRouter() {
@@ -28,6 +30,7 @@ func setupRouter() {
"trojan_proxies_count": cache.TrojanProxiesCount,
"useful_proxies_count": cache.UsefullProxiesCount,
"last_crawl_time": cache.LastCrawlTime,
"version": version,
})
})

View File

@@ -120,8 +120,8 @@
href="clash://install-config?url=https://{{ .domain }}/clash/config">一键导入</a></p>
<p>Clash proxy-provider(Shadowrocket添加订阅方式可用):<a href="https://{{ .domain }}/clash/proxies">https://{{ .domain }}/clash/proxies</a>
</p>
<p>所有节点的Provider(不是都可以用):<a href="https://{{ .domain }}/clash/proxies?type=all">https://{{ .domain }}/clash/proxies?type=all</a>
</p>
<p>筛选代理类型:https://{{ .domain }}/clash/proxies?type=ss,ssr,vmess</p>
<p>筛选国家:https://{{ .domain }}/clash/proxies?c=HK,TW,US</p>
<br>
<h5><a href="/surge">Surge</a></h5>
<p>Surge配置文件:https://{{ .domain }}/surge/config <a
@@ -130,7 +130,7 @@
</p>
<br>
{{- /* 所有使用本代码提供服务的禁止删除该行*/}}
<p>抓取程序已开源:<a href="https://github.com/zu1k/proxypool">https://github.com/zu1k/proxypool</a></p>
<p>抓取程序已开源:<a href="https://github.com/zu1k/proxypool">https://github.com/zu1k/proxypool</a> {{ .version }}</p>
</div>
</div>
</div>