Skip to content

Commit

Permalink
Update default config to maintain client behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
oteffahi committed Jan 14, 2025
1 parent c7e7ca4 commit bf7e9b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DEFAULT_CONFIG.json5
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
/// Accepts a single value (e.g. autoconnect: ["router", "peer"]) which applies whatever the configured "mode" is,
/// or different values for router, peer or client mode (e.g. autoconnect: { router: [], peer: ["router", "peer"] }).
/// Each value is a list of: "peer", "router" and/or "client".
autoconnect: { router: [], peer: ["router", "peer"], client: ["router", "peer"] },
autoconnect: { router: [], peer: ["router", "peer"], client: ["router"] },
/// Whether or not to listen for scout messages on UDP multicast and reply to them.
listen: true,
},
Expand Down
4 changes: 2 additions & 2 deletions commons/zenoh-config/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ pub mod scouting {
&crate::WhatAmIMatcher::empty();
pub const peer: &crate::WhatAmIMatcher = // "router|peer"
&crate::WhatAmIMatcher::empty().router().peer();
pub const client: &crate::WhatAmIMatcher = // "router|peer"
&crate::WhatAmIMatcher::empty().router().peer();
pub const client: &crate::WhatAmIMatcher = // "router"
&crate::WhatAmIMatcher::empty().router();
mode_accessor!(crate::WhatAmIMatcher);
}
pub mod listen {
Expand Down

0 comments on commit bf7e9b5

Please sign in to comment.