Skip to content

Commit 2d03117

Browse files
committed
fix ipv6 notation
1 parent 0d0bd84 commit 2d03117

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/webserver/http.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ fn log_welcome_message(config: &AppConfig) {
547547
"http://localhost:{port}\n\
548548
(also accessible from other devices using your IP address)"
549549
)
550+
} else if ip.is_ipv6() {
551+
format!("http://[{ip}]:{port}")
550552
} else {
551553
format!("http://{ip}:{port}")
552554
}

0 commit comments

Comments
 (0)