0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-18 22:29:49 +03:00

DNS DoH: Use EDNS0 with 100-300 padding by default (body padding)

https://github.com/XTLS/Xray-core/pull/4516#issuecomment-2744093003
This commit is contained in:
RPRX
2025-03-21 20:13:09 +00:00
committed by GitHub
parent b585b26f29
commit 607c2a6d31
6 changed files with 51 additions and 39 deletions

View File

@ -156,7 +156,7 @@ func Test_genEDNS0Options(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := genEDNS0Options(tt.args.clientIP); got == nil {
if got := genEDNS0Options(tt.args.clientIP, 0); got == nil {
t.Errorf("genEDNS0Options() = %v, want %v", got, tt.want)
}
})