Skip to content

Commit 13bd5d4

Browse files
use ::1 as ipv6 local address
1 parent 421173f commit 13bd5d4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ fn main() {
7272
.build();
7373
} else if options.ipv6 {
7474
client = reqwest::blocking::Client::builder()
75-
.local_address(
76-
"2001:0db8:85a3:0000:0000:8a2e:0370:7334"
77-
.parse::<IpAddr>()
78-
.unwrap(),
79-
)
75+
.local_address("::1".parse::<IpAddr>().unwrap())
8076
.build();
8177
} else {
8278
client = reqwest::blocking::Client::builder().build();

0 commit comments

Comments
 (0)