|
|
@ -5,7 +5,6 @@ package main |
|
|
|
import ( |
|
|
|
"flag" |
|
|
|
|
|
|
|
"github.com/xjasonlyu/tun2socks/common/log" |
|
|
|
"github.com/xjasonlyu/tun2socks/common/stats/session" |
|
|
|
) |
|
|
|
|
|
|
@ -22,9 +21,7 @@ func init() { |
|
|
|
session.StatsVersion = version |
|
|
|
|
|
|
|
// start session stater
|
|
|
|
if err := sessionStater.Start(); err != nil { |
|
|
|
log.Fatalf("start session stater failed: %v", err) |
|
|
|
} |
|
|
|
sessionStater.Start() |
|
|
|
} else { |
|
|
|
sessionStater = nil |
|
|
|
} |
|
|
|