mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
fix #66
This commit is contained in:
parent
b297aa2e13
commit
3819f2c2da
@ -136,7 +136,6 @@ func (c *websocketClient) connectUniversal() {
|
||||
log.Warnf("连接到反向Websocket Universal服务器 %v 时出现致命错误: %v", c.conf.ReverseUrl, err)
|
||||
return
|
||||
}
|
||||
wsConf.Dialer.Timeout = time.Second * 5
|
||||
wsConf.Header["X-Client-Role"] = []string{"Universal"}
|
||||
wsConf.Header["X-Self-ID"] = []string{strconv.FormatInt(c.bot.Client.Uin, 10)}
|
||||
wsConf.Header["User-Agent"] = []string{"CQHttp/4.15.0"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user