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

vweb: support vweb.run_at(app, localhost, 8099) (#13337)

This commit is contained in:
Delyan Angelov
2022-02-01 18:41:12 +02:00
committed by GitHub
parent d8cce0a71d
commit b2c299da48
3 changed files with 29 additions and 23 deletions

View File

@@ -43,9 +43,8 @@ fn main() {
timeout: timeout
global_config: config
}
eprintln('>> webserver: started on http://127.0.0.1:$app.port/ , with maximum runtime of $app.timeout milliseconds.')
// vweb.run<App>(mut app, http_port)
vweb.run(app, http_port)
eprintln('>> webserver: started on http://localhost:$app.port/ , with maximum runtime of $app.timeout milliseconds.')
vweb.run_at(app, 'localhost', http_port)
}
// pub fn (mut app App) init_server() {