mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 10:24:40 +01:00
DNS64 plugin: don't return SYNTH data, alter the response directly
Fixes #2619 However, cached responses now appear with the "PASS" status rather than "CLOAK".
This commit is contained in:
parent
0af88bc875
commit
6ae388e646
1 changed files with 3 additions and 4 deletions
|
@ -152,11 +152,10 @@ func (plugin *PluginDNS64) Eval(pluginsState *PluginsState, msg *dns.Msg) error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
synth := EmptyResponseFromMessage(msg)
|
msg.Answer = synth64
|
||||||
synth.Answer = append(synth.Answer, synth64...)
|
msg.AuthenticatedData = false
|
||||||
|
msg.SetEdns0(uint16(MaxDNSUDPSafePacketSize), false)
|
||||||
|
|
||||||
pluginsState.synthResponse = synth
|
|
||||||
pluginsState.action = PluginsActionSynth
|
|
||||||
pluginsState.returnCode = PluginsReturnCodeCloak
|
pluginsState.returnCode = PluginsReturnCodeCloak
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue