diff --git a/DEFAULT_CONFIG.json5 b/DEFAULT_CONFIG.json5 index 23cbd00831..9ad530f474 100644 --- a/DEFAULT_CONFIG.json5 +++ b/DEFAULT_CONFIG.json5 @@ -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, }, diff --git a/commons/zenoh-config/src/defaults.rs b/commons/zenoh-config/src/defaults.rs index eb000923e2..8b64d152e9 100644 --- a/commons/zenoh-config/src/defaults.rs +++ b/commons/zenoh-config/src/defaults.rs @@ -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 {