File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " cloudflare-ddns-rust"
3- version = " 0.6.2 "
3+ version = " 0.6.3 "
44edition = " 2021"
55
66# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Original file line number Diff line number Diff 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( ) ) ;
You can’t perform that action at this time.
0 commit comments