mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-06 06:33:31 +03:00
Chore: use 'dns' for ALPN in tcp-tls nameserver (#209)
This commit is contained in:
parent
bcf5b21208
commit
aa3516ca24
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue