Chore: rename secret to token

This commit is contained in:
xjasonlyu
2021-02-06 11:39:25 +08:00
parent d1df910888
commit aa703ac90d
8 changed files with 22 additions and 22 deletions

View File

@@ -12,8 +12,8 @@ import (
type Engine struct {
mtu uint32
iface string
secret string
stats string
token string
logLevel string
rawProxy string
rawDevice string
@@ -76,7 +76,7 @@ func (e *Engine) setInterface() error {
func (e *Engine) setStats() error {
if e.stats != "" {
go func() {
_ = stats.Start(e.stats, e.secret)
_ = stats.Start(e.stats, e.token)
}()
log.Infof("[STATS] listen and serve at: http://%s", e.stats)
}