@@ -521,6 +521,18 @@ func (p *Probe) createReverseTrafficSimProbe(sourceProbe *Probe, sourceAgent Age
521521 return nil , err
522522 }
523523
524+ /*
525+
526+ scenario one:
527+ - p.Agent is A and the requesting probe is from B
528+ - The probe will have B's agent ID in the probe
529+ - Currently; if both the "requesting" probe, and our CURRENT
530+ server have a server, then return B's probe information, with the source probe IP
531+
532+
533+
534+ */
535+
524536 var thisAgentHasServer bool
525537 var _ string
526538
@@ -567,7 +579,7 @@ func (p *Probe) createReverseTrafficSimProbe(sourceProbe *Probe, sourceAgent Age
567579 }
568580
569581 // Case 2: Source agent has a server, this agent should appear as a client
570- if sourceAgentHasServer && ! thisAgentHasServer {
582+ if sourceAgentHasServer {
571583 reverseProbe := & Probe {
572584 ID : sourceProbe .ID ,
573585 Type : ProbeType_TRAFFICSIM ,
@@ -592,7 +604,7 @@ func (p *Probe) createReverseTrafficSimProbe(sourceProbe *Probe, sourceAgent Age
592604 }
593605
594606 // Case 3: Both have servers - bidirectional traffic sim possible
595- if thisAgentHasServer && sourceAgentHasServer {
607+ /* if thisAgentHasServer && sourceAgentHasServer {
596608 // Create a client probe pointing to the source's server
597609 reverseProbe := &Probe{
598610 ID: sourceProbe.ID,
@@ -615,7 +627,7 @@ func (p *Probe) createReverseTrafficSimProbe(sourceProbe *Probe, sourceAgent Age
615627 },
616628 }
617629 return reverseProbe, nil
618- }
630+ }*/
619631
620632 // Case 4: Neither has a server - no traffic sim possible
621633 return nil , nil
0 commit comments