Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support ToS routing rule #292

Merged
merged 5 commits into from
Aug 19, 2023
Merged

feat: support ToS routing rule #292

merged 5 commits into from
Aug 19, 2023

Conversation

mzz2017
Copy link
Contributor

@mzz2017 mzz2017 commented Aug 19, 2023

Out-of-date

Please see #294 for the final version!

Background

Support tos routing rule.

According to http://libtorrent.org/reference-Settings.html#peer_tos, the default value of dscp and tos is 0x04 in libtorrent.

This PR gives a BitTorrent bypass method.

Example:

routing {
  // decimal
  tos(50) -> direct
  // hex
  tos(0x4) -> direct
}

Also see #295.

Checklist

Full Changelogs

  • [Implement ...]

Issue Reference

Closes #[issue number]

Test Result

@mzz2017 mzz2017 requested a review from a team as a code owner August 19, 2023 16:49
@mzz2017
Copy link
Contributor Author

mzz2017 commented Aug 19, 2023

Test result:
image

Copy link
Contributor

@dae-prow dae-prow bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Since the PR has been fully tested, please consider merging it.

@mzz2017 mzz2017 merged commit 7273be6 into main Aug 19, 2023
@mzz2017 mzz2017 deleted the feat_support_tos_routing branch August 19, 2023 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants