Skip to content

Commit

Permalink
fixed bug issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
dandyvica committed Jan 6, 2025
1 parent 89022dc commit 62c38a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rust-version = "1.82.0"
base16 = "0.2.1"
base64 = "0.21.5"
byteorder = "1.5.0"
bytes = "1.5.0"
bytes = "1.9.0"
chrono = "0.4.38"
clap = "4.5.9"
colored = "2.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/transport/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl EndPoint {

// true if all addresses in addrs field are ipv6
pub fn is_ipv6(&self) -> bool {
self.addrs.iter().all(|a| a.is_ipv6())
!self.addrs.is_empty() && self.addrs.iter().all(|a| a.is_ipv6())
}

// test if a string ip is IPV6. Used to disambiguate from cases where port is added
Expand Down
2 changes: 1 addition & 1 deletion tests/venom/endpoint-ipv4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: DQY binary test (endpoints v4)
testcases:
- name: use host resolver
steps:
- script: dqy A www.google.com
- script: dqy A www.google.com -vvvvv
assertions:
- result.code ShouldEqual 0

Expand Down

0 comments on commit 62c38a1

Please sign in to comment.