client-interface-cleanup #6
@ -163,16 +163,12 @@ func (r *remoteFSM) stateServer_onSyn(msg controlMsg[packetSyn]) {
|
|||||||
r.lastSeen = time.Now()
|
r.lastSeen = time.Now()
|
||||||
p := msg.Packet
|
p := msg.Packet
|
||||||
|
|
||||||
if p.TraceID == r.traceID {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
r.traceID = p.TraceID
|
|
||||||
|
|
||||||
// Before we can respond to this packet, we need to make sure the
|
|
||||||
// route is setup properly.
|
|
||||||
conf := r.conf()
|
conf := r.conf()
|
||||||
|
|
||||||
|
// New trace ID => Update the route configuration.
|
||||||
|
if p.TraceID != r.traceID {
|
||||||
|
r.traceID = p.TraceID
|
||||||
|
|
||||||
conf.Up = true
|
conf.Up = true
|
||||||
conf.Direct = p.Direct
|
conf.Direct = p.Direct
|
||||||
conf.DirectAddr = msg.SrcAddr
|
conf.DirectAddr = msg.SrcAddr
|
||||||
@ -181,6 +177,7 @@ func (r *remoteFSM) stateServer_onSyn(msg controlMsg[packetSyn]) {
|
|||||||
|
|
||||||
r.updateConf(conf)
|
r.updateConf(conf)
|
||||||
r.logf("Got SYN.")
|
r.logf("Got SYN.")
|
||||||
|
}
|
||||||
|
|
||||||
r.sendControl(conf, packetAck{
|
r.sendControl(conf, packetAck{
|
||||||
TraceID: p.TraceID,
|
TraceID: p.TraceID,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user