Skip to content

Commit

Permalink
fix OpenMessage with addpath config
Browse files Browse the repository at this point in the history
needs to send MultiProtocol cap.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
  • Loading branch information
fujita committed Jul 1, 2023
1 parent 9ee5e40 commit d2a3ab4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daemon/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,8 @@ impl PeerBuilder {
for (f, v) in &self.families {
if *v {
addpath.push((*f, 1));
} else {
self.local_cap.push(packet::Capability::MultiProtocol(*f));
}
self.local_cap.push(packet::Capability::MultiProtocol(*f));
}
if !addpath.is_empty() {
self.local_cap.push(packet::Capability::AddPath(addpath));
Expand Down

0 comments on commit d2a3ab4

Please sign in to comment.