-
Notifications
You must be signed in to change notification settings - Fork 53
Pb active transport #1464
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
Merged
Merged
Pb active transport #1464
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
087a6df
Manual updates
hulto 53399d2
go generated
hulto d21c50b
Type
hulto 0eb70af
clippy isnt angry
hulto 6cf77d6
todo
hulto c88f261
generate
hulto a69f1ad
Add extra field
hulto 924d50d
Update docs.
hulto ad470cf
Cleanup bad unwraps
hulto 3893c26
Add extra to config and pass it through.
hulto e4af562
Fix proxy uri name.
hulto 2439dd4
Remove proxy_uri ref
hulto 1fe0305
Update docs.
hulto 41c39ee
Address PR review comments for active transport refactor (#1490)
hulto 3cd57d1
Cleanup todos
hulto ed4f846
Merge branch 'main' into pb-active-transport
hulto 8ee15e3
go generate
hulto ee563b9
Merge branch 'main' into pb-active-transport
hulto 903f879
fix e2e test
hulto 4ce5751
Merge branch 'main' into pb-active-transport
hulto 0bebdc7
fmt
hulto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,13 +22,24 @@ impl SyncDispatcher for SetCallbackIntervalMessage { | |
| "SetCallbackIntervalMessage: beacon is missing from config" | ||
| )), | ||
| }?; | ||
| // TODO: we can probably just modify the interval not rebuild the entire beacon see set_callback_uri.rs | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is 1v we let it die 🫡 |
||
| c.info = Some(Beacon { | ||
| identifier: b.identifier, | ||
| principal: b.principal, | ||
| host: b.host, | ||
| agent: b.agent, | ||
| interval: self.new_interval, | ||
| transport: transport.get_type() as i32, | ||
| active_transport: Some(pb::c2::ActiveTransport { | ||
| uri: b | ||
| .active_transport | ||
| .as_ref() | ||
| .map_or(String::new(), |at| at.uri.clone()), | ||
| interval: self.new_interval, | ||
| r#type: transport.get_type() as i32, | ||
| extra: b | ||
| .active_transport | ||
| .as_ref() | ||
| .map_or(String::new(), |at| at.extra.clone()), | ||
| }), | ||
| }); | ||
| Ok(c) | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.