send session keys test working for real

This commit is contained in:
херетик
2023-02-03 19:30:18 +00:00
parent e3b3aa06b2
commit 815cd2e5a1
11 changed files with 168 additions and 59 deletions

View File

@@ -9,7 +9,7 @@ import (
func (eng *Engine) SendExit(port uint16, message slice.Bytes, id nonce.ID,
target *traffic.Session, hook func(id nonce.ID, b slice.Bytes)) {
hops := []byte{0, 1, 2, 3, 4, 5}
s := make(traffic.Sessions, len(hops))
s[2] = target
@@ -17,5 +17,6 @@ func (eng *Engine) SendExit(port uint16, message slice.Bytes, id nonce.ID,
var c traffic.Circuit
copy(c[:], se)
o := onion.SendExit(port, message, id, se[len(se)-1], c, eng.KeySet)
log.D.Ln("sending out exit onion")
eng.SendOnion(c[0].AddrPort, o, hook)
}