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:
@@ -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
|
||||
|
Reference in New Issue
Block a user