Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix no type in config
Browse files Browse the repository at this point in the history
  • Loading branch information
MajliTech committed May 19, 2023
1 parent ad3dce0 commit 8c96679
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/clouddns-setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ fn main() {
header::HeaderValue::from_static("application/json"),
);
config["email"] = json::JsonValue::String(email);
config["type"]= json::JsonValue::String("A".to_string()
);
println!("{}","For now, only IPv4 is supported. Future versions will support IPv6 as well.".yellow());
// https://api.cloudflare.com/client/v4/user/tokens/verify
// let mut map = std::collections::HashMap::new();
let response = match client.get("https://api.cloudflare.com/client/v4/user/tokens/verify").headers(headers.clone()).send()
Expand Down

0 comments on commit 8c96679

Please sign in to comment.