mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 10:05:17 +00:00
commit
1373800d26
@ -192,7 +192,7 @@ func (sinfo *searchInfo) checkDHTRes(res *dhtRes) bool {
|
|||||||
finishSearch := func(sess *sessionInfo, err error) {
|
finishSearch := func(sess *sessionInfo, err error) {
|
||||||
if sess != nil {
|
if sess != nil {
|
||||||
// FIXME (!) replay attacks could mess with coords? Give it a handle (tstamp)?
|
// FIXME (!) replay attacks could mess with coords? Give it a handle (tstamp)?
|
||||||
sess.coords = res.Coords
|
sess.Act(sinfo.searches.router, func() { sess.coords = res.Coords })
|
||||||
sess.ping(sinfo.searches.router)
|
sess.ping(sinfo.searches.router)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user