Skip to content

Commit

Permalink
fix: move to base32
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb1t committed Nov 2, 2023
1 parent cb93edb commit 2bada4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl Config {
// let decoded_host: String = crockford::decode(val[0].to_uppercase()).unwrap().to_string();
let mut output = vec![0; BASE32.decode_len(owned_val.len()).unwrap()];
let len = BASE32.decode_mut(owned_val.as_bytes(), &mut output).unwrap();
dbg!(std::str::from_utf8(&output[0 .. len]).unwrap());
// dbg!(std::str::from_utf8(&output[0 .. len]).unwrap());
config = config.join(("host", std::str::from_utf8(&output[0 .. len]).unwrap()));
// config = config.join(("host", decoded_host));

Expand Down

0 comments on commit 2bada4d

Please sign in to comment.