This commit is contained in:
Mateusz Gruszczyński committed 2026-09-18 12:26:48 +02:00
1 parent 8d96ad2d38
commit 00cbe975bb
21 files changed
+231 -106

No files matched your search

+6 -1
View File
@@ -124,8 +124,13 @@ pub struct LocalDiscoveryCandidate {
pub ip: String,
#[serde(default = "default_port")]
pub port: u16,
/// Detected protocol: 1 = AES-ECB, 2 = AES-GCM.
/// Discovery protocol hint: 0 = unknown/auto, 1 = AES-ECB, 2 = AES-GCM.
pub protocol_version: u8,
/// True only when the discovery request explicitly selected V1 or V2.
/// Auto discovery keeps this false so binding can verify/fallback and store
/// the protocol that actually succeeds.
#[serde(default)]
pub protocol_locked: bool,
#[serde(default)]
pub model: String,
#[serde(default)]