forked from quic-go/quic-go
move handshake handling and server config into handshake package
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
|
||||
"github.com/lucas-clemente/quic-go"
|
||||
"github.com/lucas-clemente/quic-go/crypto"
|
||||
"github.com/lucas-clemente/quic-go/handshake"
|
||||
"github.com/lucas-clemente/quic-go/protocol"
|
||||
"github.com/lucas-clemente/quic-go/utils"
|
||||
)
|
||||
@@ -27,7 +28,7 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
serverConfig := quic.NewServerConfig(crypto.NewCurve25519KEX(), keyData)
|
||||
serverConfig := handshake.NewServerConfig(crypto.NewCurve25519KEX(), keyData)
|
||||
|
||||
// TODO: When should a session be created?
|
||||
sessions := map[protocol.ConnectionID]*quic.Session{}
|
||||
|
||||
Reference in New Issue
Block a user