xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.86k stars 407 forks source link

Socks4 statistics #61

Closed chromer030 closed 2 years ago

chromer030 commented 2 years ago

Environment

Describe the bug Statistics page just sends an hello !

./tun2socks-linux-amd64 -device tun://tun0 -proxy $proxy -stats 127.0.0.1:8081

Screenshot_20210722_115055

xjasonlyu commented 2 years ago

😂

chromer030 commented 2 years ago

Am i doing something wrong ?

xjasonlyu commented 2 years ago

No, it's just what it supposed to send.

r.Group(func(r chi.Router) {
    r.Use(authenticator(token))
    r.Get("/", hello)
    r.Get("/logs", getLogs)
    r.Get("/traffic", traffic)
    r.Get("/version", version)
    r.Mount("/connections", connectionRouter())
})