跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 怎么用CloudflareWorker反代Websocket链接
未分類
8 6 月 2020

怎么用CloudflareWorker反代Websocket链接

Lemon0 大佬有话说 :

怎么用CloudflareWorker反代Websocket链接

如题

Lemon0 大佬有话说 :

ua

Lemon0 大佬有话说 :

@inkedus

inkedus 大佬有话说 :

本帖最后由 inkedus 于 2020-6-8 18:40 编辑

addEventListener(
“fetch”,event => {
let url=new URL(event.request.url);
url.hostname=”需要反代的 ***** 服务器地址”;
let request=new Request(url,event.request);
event. respondWith(
fetch(request)
)
}
)

看你上个帖子了,希望不能帮上你

https://www.hostloc.com/thread-585159-1-1.htmlhttps://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

Lemon0 大佬有话说 :

inkedus 大佬有话说 : 2020-6-8 18:39
看你上个帖子了,希望不能帮上你

前面要加上协议头吗?
http://?ws://?https://?

inkedus 大佬有话说 :

Lemon0 大佬有话说 : 2020-6-8 18:41
前面要加上协议头吗?
http://?ws://?https://?

https://www.hostloc.com/thread-585159-1-1.html
看的这个帖子,我不玩翻强https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

Lemon0 大佬有话说 :

不行哎
Error 523 Ray ID: * • 2020-06-08 10:45:41 UTC
Origin is unreachable
You
Browser
Working
Osaka
Cloudflare
Working
*
Host

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具