mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
vweb: print address of the app
This commit is contained in:
parent
1202631fa6
commit
8bb41d2de5
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue