1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904)

This commit is contained in:
Emily Hudson
2021-06-13 21:53:38 +01:00
committed by GitHub
parent fa9fa77a5f
commit 535dcac8fa
52 changed files with 1277 additions and 524 deletions

View File

@@ -303,7 +303,8 @@ pub fn run<T>(global_app &T, port int) {
// mut app := &T{}
// run_app<T>(mut app, port)
mut l := net.listen_tcp(port) or { panic('failed to listen') }
mut l := net.listen_tcp(.ip6, ':$port') or { panic('failed to listen $err.code $err') }
println('[Vweb] Running app on http://localhost:$port')
// app.Context = Context{
// conn: 0