vweb: print address of the app
parent
1202631fa6
commit
8bb41d2de5
|
@ -70,6 +70,7 @@ $html
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run<T>(port int) {
|
pub fn run<T>(port int) {
|
||||||
|
println('Running vweb app on http://localhost:$port ...')
|
||||||
l := net.listen(port) or { panic('failed to listen') return }
|
l := net.listen(port) or { panic('failed to listen') return }
|
||||||
for {
|
for {
|
||||||
conn := l.accept() or {
|
conn := l.accept() or {
|
||||||
|
|
Loading…
Reference in New Issue