]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix 弹幕服务器端口错误
authorqydysky <32743305+qydysky@users.noreply.github.com>
Thu, 23 Mar 2023 13:17:58 +0000 (21:17 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Thu, 23 Mar 2023 13:17:58 +0000 (21:17 +0800)
F/api.go
bili_danmu.go

index fc388960d341340a4a445f834c54594255e40553..fbc15079503195b7606f03d76eff678f3b974ec1 100644 (file)
--- 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
        }
index 207bd1d4789ae3d4190f804c4bb97536760eece9..dd9f10d3254a47eb9ba6729e3a1072a7c4a9fb22 100644 (file)
@@ -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