implement DialNonFWSecure for the client

This commit is contained in:
Marten Seemann
2017-05-09 08:59:29 +08:00
parent e6aeb143a7
commit 2bfa7e59cb
4 changed files with 67 additions and 38 deletions

View File

@@ -162,12 +162,11 @@ var _ = Describe("Session", func() {
cpm = &mockConnectionParametersManager{idleTime: 60 * time.Second}
sess.connectionParameters = cpm
clientSess, err = newClientSession(
clientSess, _, err = newClientSession(
mconn,
"hostname",
protocol.Version35,
0,
func(Session, bool) {},
populateClientConfig(&Config{}),
nil,
)
@@ -817,12 +816,11 @@ var _ = Describe("Session", func() {
})
It("passes the transport parameters to the cryptoSetup, as a client", func() {
s, err := newClientSession(
s, _, err := newClientSession(
nil,
"hostname",
protocol.Version35,
0,
func(Session, bool) {},
populateClientConfig(&Config{RequestConnectionIDTruncation: true}),
nil,
)