Skip to content

Commit

Permalink
use ::1 as ipv6 local address
Browse files Browse the repository at this point in the history
  • Loading branch information
code-inflation committed Aug 31, 2023
1 parent 421173f commit 13bd5d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ fn main() {
.build();
} else if options.ipv6 {
client = reqwest::blocking::Client::builder()
.local_address(
"2001:0db8:85a3:0000:0000:8a2e:0370:7334"
.parse::<IpAddr>()
.unwrap(),
)
.local_address("::1".parse::<IpAddr>().unwrap())
.build();
} else {
client = reqwest::blocking::Client::builder().build();
Expand Down

0 comments on commit 13bd5d4

Please sign in to comment.