WIP adding crawling debug packets

This commit is contained in:
Arceliar 2021-05-22 19:54:52 -05:00
parent b11cf7a2f2
commit 8668abf481
4 changed files with 130 additions and 0 deletions

View file

@ -88,6 +88,11 @@ func (tun *TunAdapter) write() {
res := append([]byte(nil), bs[1:n]...)
tun.nodeinfo.handleRes(nil, key, res)
continue
case typeSessionDebug:
var key keyArray
copy(key[:], from.(iwt.Addr))
data := append([]byte(nil), bs[1:n]...)
tun.debug.handleDebug(nil, key, data)
default:
continue
}