zhangzengfei
2024-04-28 62beabfd1466fd3a6b6c0736acc8c5a3b3ec4b3b
config/config.go
@@ -26,7 +26,7 @@
   UploadType        string `mapstructure:"upload-type"`        // binary, url
   ChannelNo         string `mapstructure:"channel-number"`     // 通道号, 同id
   HeartbeatInterval int    `mapstructure:"heartbeat-interval"` // 心跳周期
   HeartbeatCount    int    `mapstructure:"heartbeat-count"`    // 心跳超时次数
   HeartbeatFailCount int    `mapstructure:"heartbeat-count"`    // 心跳超时次数
   Enable            bool   `mapstructure:"enable"`
}
@@ -97,5 +97,13 @@
      ForwardConf.RetryInterval = 5
   }
   if ClientConf.HeartbeatInterval == 0 {
      ClientConf.HeartbeatInterval = 30
   }
   if ClientConf.Proto == "" {
      ClientConf.Proto = "http"
   }
   logger.SetLogLevel(LogConf.Level)
}