[PR #167] [MERGED] Support CloudFlare CDN. Fixes #155 #285

Closed
opened 2026-02-26 12:34:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cbeuw/Cloak/pull/167
Author: @notsure2
Created: 7/22/2021
Status: Merged
Merged: 7/24/2021
Merged by: @cbeuw

Base: masterHead: support-cloudflare


📝 Commits (1)

📊 Changes

3 files changed (+27 additions, -2 deletions)

View changed files

📝 go.mod (+1 -1)
📝 go.sum (+13 -0)
📝 internal/client/websocket.go (+13 -1)

📄 Description

The fix is 2 parts:

  • To fix the TLS error (compression extension), switched from utls to a fork of it that supports it (yawning/utls)
  • To fix the websocket malformed response, act like chrome and remove the ALPN.

Tested working on CloudFlare free plan.
@cbeuw


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cbeuw/Cloak/pull/167 **Author:** [@notsure2](https://github.com/notsure2) **Created:** 7/22/2021 **Status:** ✅ Merged **Merged:** 7/24/2021 **Merged by:** [@cbeuw](https://github.com/cbeuw) **Base:** `master` ← **Head:** `support-cloudflare` --- ### 📝 Commits (1) - [`387b76d`](https://github.com/cbeuw/Cloak/commit/387b76d4267017b78ba92448f59b94420c0651c0) Support CloudFlare CDN. Fixes #155 ### 📊 Changes **3 files changed** (+27 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -1) 📝 `go.sum` (+13 -0) 📝 `internal/client/websocket.go` (+13 -1) </details> ### 📄 Description The fix is 2 parts: - To fix the TLS error (compression extension), switched from utls to a fork of it that supports it (yawning/utls) - To fix the websocket malformed response, act like chrome and remove the ALPN. Tested working on CloudFlare free plan. @cbeuw --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 12:34:29 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#285
No description provided.