Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit da912bd

Browse files
committed
Add IPv6 support.
1 parent b2b69c7 commit da912bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn main() {
121121
)
122122
});
123123
let (_, server) =
124-
warp::serve(redirect).bind_with_graceful_shutdown(([0, 0, 0, 0], 80), rx80);
124+
warp::serve(redirect).bind_with_graceful_shutdown(([0, 0, 0, 0, 0, 0, 0, 0], 80), rx80);
125125
thread::spawn(|| {
126126
tokio::run(server);
127127
});
@@ -152,7 +152,7 @@ fn main() {
152152

153153
let (_, server) = warp::serve(tlsroutes)
154154
.tls(&pem_name, &key_name)
155-
.bind_with_graceful_shutdown(([0, 0, 0, 0], 443), rx);
155+
.bind_with_graceful_shutdown(([0, 0, 0, 0, 0, 0, 0, 0], 443), rx);
156156

157157
thread::spawn(|| {
158158
tokio::run(server);
@@ -310,7 +310,7 @@ fn request_cert(
310310
});
311311
let (tx80, rx80) = oneshot::channel();
312312
let (_, server) = warp::serve(token.or(redirect))
313-
.bind_with_graceful_shutdown(([0, 0, 0, 0], 80), rx80);
313+
.bind_with_graceful_shutdown(([0, 0, 0, 0, 0, 0, 0, 0], 80), rx80);
314314
thread::spawn(|| {
315315
tokio::run(server);
316316
});

0 commit comments

Comments
 (0)