Skip to content

Commit

Permalink
ignore leap if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
takotori committed Dec 11, 2023
1 parent f5600e5 commit 4ad9df4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/network/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,10 +1431,13 @@ impl PropMapConvert for WifiSecuritySettings {
"leap-password-flags".into(),
Variant(Box::new(self.leap_password_flags.to_i32())),
);
map.insert(
"leap-username".into(),
Variant(Box::new(self.leap_username.clone())),
);
if !self.leap_username.is_empty() {
map.insert(
"leap-username".into(),
Variant(Box::new(self.leap_username.clone())),
);
}

map.insert("pairwise".into(), Variant(Box::new(self.pairwise.clone())));
map.insert("proto".into(), Variant(Box::new(self.proto.clone())));
map.insert("psk".into(), Variant(Box::new(self.psk.clone())));
Expand Down

0 comments on commit 4ad9df4

Please sign in to comment.