mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-14 04:54:36 +08:00
update stats version
This commit is contained in:
@@ -81,9 +81,9 @@ func (s *simpleSessionStater) Start() error {
|
|||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding: 4;
|
padding: 4;
|
||||||
}</style><title>Go-tun2socks %s</title></head>`, StatsVersion)
|
}</style><title>Go-tun2socks Sessions</title></head>`)
|
||||||
_, _ = fmt.Fprintf(w, "<h2>%s</h2>", now())
|
_, _ = fmt.Fprintf(w, "<h2>%s</h2>", now())
|
||||||
_, _ = fmt.Fprintf(w, "<h3>Uptime: %s</h3>", uptime())
|
_, _ = fmt.Fprintf(w, "<h3>Version: %s Uptime: %s</h3>", StatsVersion, uptime())
|
||||||
_, _ = fmt.Fprintf(w, "<p>Active sessions %d</p>", len(sessions))
|
_, _ = fmt.Fprintf(w, "<p>Active sessions %d</p>", len(sessions))
|
||||||
tablePrint(w, sessions)
|
tablePrint(w, sessions)
|
||||||
_, _ = fmt.Fprintf(w, "<br/><br/>")
|
_, _ = fmt.Fprintf(w, "<br/><br/>")
|
||||||
|
Reference in New Issue
Block a user