mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
Chore: use 'dns' for ALPN in tcp-tls nameserver (#209)
This commit is contained in:
parent
697b82b9fe
commit
21cf6cd128
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user