From 21cf6cd12825e8657935ef82fdd6910e04340672 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Thu, 20 Jun 2019 15:50:01 +0800 Subject: [PATCH] Chore: use 'dns' for ALPN in tcp-tls nameserver (#209) --- dns/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dns/client.go b/dns/client.go index 862d935d..4af716bd 100644 --- a/dns/client.go +++ b/dns/client.go @@ -240,6 +240,8 @@ func transform(servers []NameServer) []*nameserver { Net: s.Net, TLSConfig: &tls.Config{ ClientSessionCache: globalSessionCache, + // alpn identifier, see https://tools.ietf.org/html/draft-hoffman-dprive-dns-tls-alpn-00#page-6 + NextProtos: []string{"dns"}, }, UDPSize: 4096, },