vweb: print address of the app

pull/1389/head
Alexander Medvednikov 2019-07-30 22:24:53 +02:00
parent 1202631fa6
commit 8bb41d2de5
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ $html
}
pub fn run<T>(port int) {
println('Running vweb app on http://localhost:$port ...')
l := net.listen(port) or { panic('failed to listen') return }
for {
conn := l.accept() or {