mirror of https://github.com/cbeuw/Cloak
Fix failing unit test due to the connection not being a tcp connection in tests.
This commit is contained in:
parent
e2e8a8e9be
commit
391c017956
|
|
@ -32,7 +32,8 @@ func MakeSession(connConfig RemoteConnConfig, authInfo AuthInfo, dialer common.D
|
|||
goto makeconn
|
||||
}
|
||||
|
||||
tcpConn := remoteConn.(*net.TCPConn)
|
||||
tcpConn, ok := remoteConn.(*net.TCPConn)
|
||||
if ok {
|
||||
syscallConn, err := tcpConn.SyscallConn()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
@ -47,6 +48,7 @@ func MakeSession(connConfig RemoteConnConfig, authInfo AuthInfo, dialer common.D
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
transportConn := connConfig.TransportMaker()
|
||||
sk, err := transportConn.Handshake(remoteConn, authInfo)
|
||||
|
|
|
|||
Loading…
Reference in New Issue