Skip to content

Commit

Permalink
fix determine non-preferred ipv6 (#7)
Browse files Browse the repository at this point in the history
* fix trivial bug in determine_ipv6
* update to v0.3.0
  • Loading branch information
masterflitzer committed Feb 18, 2023
1 parent 516940d commit 65984d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 = "ddns_cloudflare"
version = "0.2.0"
version = "0.3.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion src/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub(crate) async fn determine_ipv6(config: &Config) -> Option<Ipv6Addr> {
.filter(|&ip| ip != response.ip)
.collect::<Vec<_>>();

ip = ips.first()?.to_owned();
ip = ips.first().unwrap_or(&ip).to_owned();
}

match ip {
Expand Down

0 comments on commit 65984d3

Please sign in to comment.