Autodetection of mode via TTY

This commit is contained in:
2022-01-15 18:20:31 +10:30
parent 7a1c344964
commit e3cfa6f309
5 changed files with 39 additions and 6 deletions

View File

@@ -49,7 +49,8 @@ func ConstructSecureMessage(sm []byte) SecureMessage {
}
type SecureConnection struct {
Conn *net.TCPConn
// Conn *net.TCPConn
Conn io.ReadWriteCloser
SharedKey *[32]byte
Buffer *bytes.Buffer
}