refactor: (almost) remove dependency of crypto on LocalConnection

This commit is contained in:
Matthias Radestock committed 2015-04-27 07:14:30 +01:00
1 parent 29c02d2724
commit ea4e84cdd3
4 files changed
+37 -35

No files matched your search

+1 -1
View File
@@ -446,7 +446,7 @@ func (conn *LocalConnection) receiveTCP(decoder *gob.Decoder) {
usingPassword := conn.SessionKey != nil
var receiver TCPReceiver
if usingPassword {
receiver = NewEncryptedTCPReceiver(conn)
receiver = NewEncryptedTCPReceiver(conn.SessionKey)
} else {
receiver = NewSimpleTCPReceiver()
}