升级至8069版本:版本号更新/代理配置系统/红包计时埋点/长连接重构/回调修复
This commit is contained in:
@@ -9,6 +9,23 @@ import (
|
||||
"golang.org/x/net/proxy"
|
||||
)
|
||||
|
||||
// GlobalProxyConfig 全局代理配置(由 srv 层设置)
|
||||
var GlobalProxyConfig = struct {
|
||||
LongConnTimeout int
|
||||
LongConnReadTimeout int
|
||||
LongConnRetryTimes int
|
||||
LongConnRetryInterval int
|
||||
ShortConnTimeout int
|
||||
AllowDirectOnProxyFail bool
|
||||
}{
|
||||
LongConnTimeout: 15,
|
||||
LongConnReadTimeout: 210,
|
||||
LongConnRetryTimes: 30,
|
||||
LongConnRetryInterval: 500,
|
||||
ShortConnTimeout: 15,
|
||||
AllowDirectOnProxyFail: false,
|
||||
}
|
||||
|
||||
// AesGcmParam AesGcm加密解密参数
|
||||
type AesGcmParam struct {
|
||||
AesKey []byte
|
||||
@@ -66,6 +83,13 @@ type MMInfo struct {
|
||||
ClientEcdhKeys *ClientEcdhKeys
|
||||
// 代理
|
||||
Dialer proxy.Dialer
|
||||
|
||||
LongConnTimeout int
|
||||
LongConnReadTimeout int
|
||||
LongConnRetryTimes int
|
||||
LongConnRetryInterval int
|
||||
ShortConnTimeout int
|
||||
AllowDirectOnProxyFail bool
|
||||
}
|
||||
|
||||
// EcdsaSignature 服务端传过来的校验数据
|
||||
|
||||
Reference in New Issue
Block a user