add getters count show

This commit is contained in:
zu1k
2020-08-24 13:20:55 +08:00
parent 526487be04
commit 2b22846028
4 changed files with 6 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/zu1k/proxypool/pkg/provider"
)
const version = "v0.3.0"
const version = "v0.3.1"
var router *gin.Engine
@@ -23,6 +23,7 @@ func setupRouter() {
router.GET("/", func(c *gin.Context) {
c.HTML(http.StatusOK, "index.html", gin.H{
"domain": config.Config.Domain,
"getters_count": cache.GettersCount,
"all_proxies_count": cache.AllProxiesCount,
"ss_proxies_count": cache.SSProxiesCount,
"ssr_proxies_count": cache.SSRProxiesCount,