Skip to content

Prevent Hysteria inbounds without TLS#651

Open
polubil wants to merge 1 commit into
PasarGuard:devfrom
polubil:fix/hysteria-require-tls
Open

Prevent Hysteria inbounds without TLS#651
polubil wants to merge 1 commit into
PasarGuard:devfrom
polubil:fix/hysteria-require-tls

Conversation

@polubil

@polubil polubil commented Jun 25, 2026

Copy link
Copy Markdown

Fixes #628

Summary

  • Reject Hysteria inbounds without TLS during Xray config parsing
  • Hide the none security option for Hysteria in the dashboard
  • Add an API regression test for Hysteria with security: none

Tests

  • uv run pytest tests/api/test_core.py -k hysteria
  • uv run pytest tests/api/test_core.py
  • make check
  • cd dashboard && bun run build

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8b9ec3d7-c8ae-48b4-8334-a9eac941aa13

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@polubil polubil marked this pull request as ready for review June 25, 2026 16:11
@ImMohammad20000

Copy link
Copy Markdown
Contributor

No need for a separate function just check tls in the _read_inbound function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants