BanqiJane / Bilibili_Danmuji

(Bilibili)B站直播礼物答谢、定时广告、关注感谢,自动回复工具,房管工具,自动打卡,Bilibili直播弹幕姬(使用websocket协议),java版B站弹幕姬,基于springboot。
GNU General Public License v3.0
707 stars 106 forks source link

控制台的弹幕连接应该改为自适应 #57

Closed apanghu closed 1 year ago

apanghu commented 1 year ago

图片 因为如果域名为https协议会导致不能连接上 ws://xxxx/danmu/sub 因为ws只支持http协议,不支持https协议, 要用(wss://xxxx/danmu/sub)

apanghu commented 1 year ago

$(document).on('click', '#danmu_open', function () { let url_start = window.location.host; let protocol = window.location.protocol; $(".connect-docket").val((protocol === 'http:' ? "ws://" : "wss://") + url_start + "/danmu/sub"); });

BanqiJane commented 1 year ago

感谢提供 之后修复版本会上

BanqiJane commented 1 year ago

2.6.4 fixed it