[PR #797] [MERGED] Fix --cfproxy-priority CLI parsing #57

Closed
opened 2026-07-19 11:34:24 +03:00 by mirror-bot · 0 comments

📋 Pull Request Information

Original PR: https://github.com/Flowseal/tg-ws-proxy/pull/797
Author: @deexsed
Created: 4/30/2026
Status: ✅ Merged
Merged: 4/30/2026
Merged by: @Flowseal

Base: main ← Head: fix/argparse


📝 Commits (1)

  • ae35f1a Fix --cfproxy-priority CLI parsing

📊 Changes

1 file changed (+11 additions, -1 deletions)

View changed files

📝 proxy/tg_ws_proxy.py (+11 -1)

📄 Description

флаг --cfproxy-priority был объявлен как type=bool в argparse. Строка false считается непустой и превращается в True, поэтому пользователь не мог надежно выключить приоритет Cloudflare через CLI.


🔄 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/Flowseal/tg-ws-proxy/pull/797 **Author:** [@deexsed](https://github.com/deexsed) **Created:** 4/30/2026 **Status:** ✅ Merged **Merged:** 4/30/2026 **Merged by:** [@Flowseal](https://github.com/Flowseal) **Base:** `main` ← **Head:** `fix/argparse` --- ### 📝 Commits (1) - [`ae35f1a`](https://github.com/Flowseal/tg-ws-proxy/commit/ae35f1aee9a1faa911aebf3cc9341322d70b0845) Fix --cfproxy-priority CLI parsing ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `proxy/tg_ws_proxy.py` (+11 -1) </details> ### 📄 Description флаг `--cfproxy-priority` был объявлен как `type=bool` в argparse. Строка `false` считается непустой и превращается в `True`, поэтому пользователь не мог надежно выключить приоритет Cloudflare через CLI. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror-bot added the pull-request label 2026-07-19 11:34:24 +03:00
mirror-bot changed title from [PR #797] [MERGED] Fix --cfproxy-priority CLI parsing to [PR #797] Fix --cfproxy-priority CLI parsing 2026-07-20 04:10:26 +03:00
mirror-bot changed title from [PR #797] Fix --cfproxy-priority CLI parsing to [PR #797] [MERGED] Fix --cfproxy-priority CLI parsing 2026-07-20 23:14:42 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Utilities/tg-ws-proxy#57