Skip to content

Commit

Permalink
Release v0.3.4 (#78)
Browse files Browse the repository at this point in the history
* fix: clippy

* fix: deperecated function

* release: v0.3.4
  • Loading branch information
sksat authored Sep 13, 2021
1 parent 8033a72 commit f9866f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kuso-subdomain-adder"
version = "0.3.3"
version = "0.3.4"
authors = ["sksat <[email protected]>"]
edition = "2018"

Expand Down
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(move || {
App::new()
.wrap(middleware::Logger::default())
.data(data.clone())
.app_data(data.clone())
.configure(app_config)
})
.bind("0.0.0.0:8101")?
Expand All @@ -146,8 +146,8 @@ async fn main() -> std::io::Result<()> {
let result_sd = add_subdomain(
&data.api_client,
&data.zone_identifier,
&subdomain,
&target_url,
subdomain,
target_url,
)
.await;

Expand Down Expand Up @@ -282,7 +282,7 @@ async fn add_subdomain(
log::info!("subdomain: {}", subdomain);
subdomain.to_string()
} else {
let pcode = punycode::encode(&subdomain).unwrap();
let pcode = punycode::encode(subdomain).unwrap();
log::info!("subdomain: {} -> {}", &subdomain, &pcode);
"xn--".to_string() + &pcode
};
Expand All @@ -296,7 +296,7 @@ async fn add_subdomain(
proxied: None,
ttl: None,
};
create_record(&api_client, &zone_identifier, record).await;
create_record(api_client, zone_identifier, record).await;

let content = target_url.to_string();
log::info!("add TXT: {}", content);
Expand All @@ -308,7 +308,7 @@ async fn add_subdomain(
proxied: None,
ttl: None,
};
create_record(&api_client, &zone_identifier, record).await;
create_record(api_client, zone_identifier, record).await;

subdomain
}
Expand Down

0 comments on commit f9866f5

Please sign in to comment.