make DialEarly return EarlySession

Fixes https://github.com/lucas-clemente/quic-go/issues/2619.
This commit is contained in:
Zero King 2020-06-22 04:52:15 +00:00
parent c956ca4447
commit 85cd490e9b

View file

@ -144,7 +144,7 @@ func DialEarly(
host string,
tlsConf *tls.Config,
config *Config,
) (Session, error) {
) (EarlySession, error) {
return dialContext(context.Background(), pconn, remoteAddr, host, tlsConf, config, true, false)
}