From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Thu, 23 Mar 2023 13:17:58 +0000 (+0800) Subject: Fix 弹幕服务器端口错误 X-Git-Tag: v0.7.5~4 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=84b03264f13bdfaacc1b45c1a90dd709c4b42826;p=bili_danmu%2F.git Fix 弹幕服务器端口错误 --- diff --git a/F/api.go b/F/api.go index fc38896..fbc1507 100644 --- a/F/api.go +++ b/F/api.go @@ -780,8 +780,9 @@ func (c *GetFunc) getDanmuInfo() (missKey []string) { for _, v := range j.Data.HostList { if v.WssPort != 443 { tmp = append(tmp, "wss://"+v.Host+":"+strconv.Itoa(v.WssPort)+"/sub") + } else { + tmp = append(tmp, "wss://"+v.Host+"/sub") } - tmp = append(tmp, "wss://"+v.Host+"/sub") } c.WSURL = tmp } diff --git a/bili_danmu.go b/bili_danmu.go index 207bd1d..dd9f10d 100644 --- a/bili_danmu.go +++ b/bili_danmu.go @@ -330,8 +330,6 @@ func Start() { case <-flash_room_chan: ws_c.Close() danmulog.L(`I: `, "停止,等待服务器断开连接") - //刷新LIVE_BUVID - F.Get(&c.C).Get(`LIVE_BUVID`) //刷新WSURL F.Get(&c.C).Get(`WSURL`) i = 0