mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-05-29 13:34:01 +00:00
Implement IETF protocol
This commit is contained in:
@@ -154,7 +154,7 @@ func (c *Client) handlerFunc(w dns.ResponseWriter, r *dns.Msg, isTCP bool) {
|
||||
}
|
||||
numServers := len(c.conf.UpstreamGoogle) + len(c.conf.UpstreamIETF)
|
||||
random := rand.Intn(numServers)
|
||||
if random <= len(c.conf.UpstreamGoogle) {
|
||||
if random < len(c.conf.UpstreamGoogle) {
|
||||
c.handlerFuncGoogle(w, r, isTCP)
|
||||
} else {
|
||||
c.handlerFuncIETF(w, r, isTCP)
|
||||
|
||||
Reference in New Issue
Block a user