From da9331f8ffe0e6a1ce0ed802ddb22c089abd33fa Mon Sep 17 00:00:00 2001 From: Anton Zavodchikov Date: Fri, 18 Feb 2022 01:13:36 +0500 Subject: [PATCH] vweb: support ipv6 (#13498) --- vlib/vweb/vweb.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 2cdceab469..ded02cbd49 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -385,7 +385,7 @@ pub fn run(global_app &T, port int) { // Example: `vweb.run_at(app, 'localhost', 8099)` [manualfree] pub fn run_at(global_app &T, host string, port int) { - mut l := net.listen_tcp(.ip, '$host:$port') or { panic('failed to listen $err.code $err') } + mut l := net.listen_tcp(.ip6, '$host:$port') or { panic('failed to listen $err.code $err') } // Parsing methods attributes mut routes := map[string]Route{}