projects
/
gandi_dns_update.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e45d8f6
)
Display the hostname when renewing.
author
Greg Burri
<greg.burri@gmail.com>
Fri, 16 Jul 2021 09:36:07 +0000
(11:36 +0200)
committer
Greg Burri
<greg.burri@gmail.com>
Fri, 16 Jul 2021 09:36:07 +0000
(11:36 +0200)
src/main.rs
patch
|
blob
|
history
diff --git
a/src/main.rs
b/src/main.rs
index
f9d8f4e
..
4b0d196
100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-52,7
+52,7
@@
fn check_and_update_dns(api_key: &str, domains: &Vec<(String, String)>, ttl: i32
if real_ip != current_ip {
println!("IP addresses don't match for domain {}: real = {}, dns = {}. Renewing DNS...", domain, real_ip, current_ip);
update_record_ip(api_key, hostname, domain, real_ip, ttl)?;
- println!("Renewing of {}
successfully"
, domain);
+ println!("Renewing of {}
.{} successfully", hostname
, domain);
}
}