Skip to content

Conversation

@leo9800
Copy link
Contributor

@leo9800 leo9800 commented Jan 5, 2026

currently, v2ray queries TXT record for domain formats in _grpc_config.<invalid.test> when gRPC transport is used, this could potentially being exploited by censorships as an indicator.

despite this behaviour is a part of standard and is the current best practice mandated by grpc developers, according to https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md#encoding-in-dns-txt-records, while considering its potential degradation to protocol "stealthiness", this patch disables this behaviour by appending a DialOption returned by grpc.WithDisableServiceConfig().

@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 23.21%. Comparing base (b2c3b25) to head (b8229be).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3587   +/-   ##
=======================================
  Coverage   23.20%   23.21%           
=======================================
  Files         836      836           
  Lines       45442    45442           
=======================================
+ Hits        10547    10549    +2     
+ Misses      33678    33677    -1     
+ Partials     1217     1216    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@xiaokangwang xiaokangwang left a comment

Choose a reason for hiding this comment

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

Thanks! This pull request is ready for merge.

@xiaokangwang xiaokangwang merged commit 1d6cecf into v2fly:master Jan 14, 2026
43 checks passed
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