mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-21 13:09:11 -04:00
Compatibility change for go 1.18
This commit is contained in:
18
common/protocol/quic/qtls_go118.go
Normal file
18
common/protocol/quic/qtls_go118.go
Normal file
@@ -0,0 +1,18 @@
|
||||
//go:build go1.18 && !go1.19
|
||||
|
||||
package quic
|
||||
|
||||
import (
|
||||
"crypto/cipher"
|
||||
|
||||
"github.com/quic-go/qtls-go1-18"
|
||||
)
|
||||
|
||||
type (
|
||||
// A CipherSuiteTLS13 is a cipher suite for TLS 1.3
|
||||
CipherSuiteTLS13 = qtls.CipherSuiteTLS13
|
||||
)
|
||||
|
||||
func AEADAESGCMTLS13(key, fixedNonce []byte) cipher.AEAD {
|
||||
return qtls.AEADAESGCMTLS13(key, fixedNonce)
|
||||
}
|
||||
Reference in New Issue
Block a user