-
Notifications
You must be signed in to change notification settings - Fork 807
Agent: Change the logic of depth to represent current depth #2033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Based on the previous logic the depth parameter represented hops remaining, not current depth.
Codecov Report
@@ Coverage Diff @@
## develop #2033 +/- ##
===========================================
- Coverage 56.86% 56.77% -0.10%
===========================================
Files 463 465 +2
Lines 12840 12850 +10
===========================================
- Hits 7302 7296 -6
- Misses 5538 5554 +16
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test and it seems good.
e9c3b81
to
3c2d58b
Compare
This method is used to determine if the inbound tunnel should be open and if the master should attempt exploiting other machines
9278d19
to
5a48bfc
Compare
If user runs the agent it should start with depth 0, because usually it means that it's running on the island
Based on the previous logic the depth parameter represented hops remaining, not current depth.
What does this PR do?
Fixes incorrect depth logic on the agent side. Based on the previous logic the depth parameter represented hops remaining, not current depth. This is misleading and might result in a situation where max depth is 3 in the configuration, so the user runs the agent with
-d 2
expecting the agent to do one more hop. In reality, the agent will make 2 hops, because--depth
was countdown to zero, not count to maximum depth.Add any further explanations here.
PR Checklist
Was the documentation framework updated to reflect the changes?Testing Checklist