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{}