Skip to content

Commit 3c3dfe0

Browse files
committed
Merge branch 'strip-ip-whitespace'
2 parents c289876 + 5fc2bb2 commit 3c3dfe0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cloudflare-ddns-rust"
3-
version = "0.6.2"
3+
version = "0.6.3"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ fn main() {
200200

201201
let ipv4_address = match ipv4_address {
202202
Ok(content) => {
203-
let content_ip = content.parse::<Ipv4Addr>();
203+
let content_ip = content.trim().parse::<Ipv4Addr>();
204204
match content_ip {
205205
Ok(address) => {
206206
log::info!("Got ipv4 addres: {}", address.to_string());
@@ -219,7 +219,7 @@ fn main() {
219219

220220
let ipv6_address = match ipv6_address {
221221
Ok(content) => {
222-
let content_ip = content.parse::<Ipv6Addr>();
222+
let content_ip = content.trim().parse::<Ipv6Addr>();
223223
match content_ip {
224224
Ok(address) => {
225225
log::info!("Got ipv6 address: {}", address.to_string());

0 commit comments

Comments
 (0)