From 2e9a2b4281795d4170ace782a3fcda12d5209560 Mon Sep 17 00:00:00 2001 From: zu1k Date: Sun, 23 Aug 2020 00:14:00 +0800 Subject: [PATCH] add version show --- api/router.go | 3 +++ assets/html/index.html | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/api/router.go b/api/router.go index 5a10563..a24bc6c 100644 --- a/api/router.go +++ b/api/router.go @@ -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, }) }) diff --git a/assets/html/index.html b/assets/html/index.html index cb63fee..d9dd8c7 100644 --- a/assets/html/index.html +++ b/assets/html/index.html @@ -120,8 +120,8 @@ href="clash://install-config?url=https://{{ .domain }}/clash/config">一键导入

Clash proxy-provider(Shadowrocket添加订阅方式可用):https://{{ .domain }}/clash/proxies

-

所有节点的Provider(不是都可以用):https://{{ .domain }}/clash/proxies?type=all -

+

筛选代理类型:https://{{ .domain }}/clash/proxies?type=ss,ssr,vmess

+

筛选国家:https://{{ .domain }}/clash/proxies?c=HK,TW,US


Surge

Surge配置文件:https://{{ .domain }}/surge/config
{{- /* 所有使用本代码提供服务的禁止删除该行*/}} -

抓取程序已开源:https://github.com/zu1k/proxypool

+

抓取程序已开源:https://github.com/zu1k/proxypool {{ .version }}