mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-09 10:40:10 +08:00
update last commit
This commit is contained in:
@@ -19,7 +19,7 @@ import (
|
||||
|
||||
const maxCompletedSessions = 100
|
||||
|
||||
var ActiveConnections *int64
|
||||
var ActiveTCPConnections *int64
|
||||
|
||||
var (
|
||||
StatsAddr = "localhost:6001"
|
||||
@@ -86,7 +86,7 @@ func (s *simpleSessionStater) Start() error {
|
||||
}</style><title>Go-tun2socks Sessions</title></head>`)
|
||||
_, _ = fmt.Fprintf(w, "<h2>Go-tun2socks %s</h2>", StatsVersion)
|
||||
_, _ = fmt.Fprintf(w, "<h3>Now: %s ; Uptime: %s</h3>", now(), uptime())
|
||||
_, _ = fmt.Fprintf(w, "<p>Active sessions %d (%d)</p>", len(sessions), atomic.LoadInt64(ActiveConnections))
|
||||
_, _ = fmt.Fprintf(w, "<p>Active sessions %d (%d)</p>", len(sessions), atomic.LoadInt64(ActiveTCPConnections))
|
||||
tablePrint(w, sessions)
|
||||
_, _ = fmt.Fprintf(w, "<br/><br/>")
|
||||
_, _ = fmt.Fprintf(w, "<p>Recently completed sessions %d</p>", len(s.completedSessions))
|
||||
|
Reference in New Issue
Block a user