mirror of
https://github.com/status-im/whispervis.git
synced 2025-02-08 19:34:43 +00:00
Add configurable port
This commit is contained in:
parent
4f5b2fe38a
commit
bb06410908
5
main.go
5
main.go
@ -9,6 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
bind := flag.String("bind", ":20002", "Port to bind to")
|
||||
iterations := flag.Int("i", 600, "Graph layout iterations to run (0 = auto, buggy)")
|
||||
flag.Parse()
|
||||
|
||||
@ -39,7 +40,7 @@ func main() {
|
||||
ws.updateGraph(data)
|
||||
ws.updatePropagationData(plog)
|
||||
|
||||
log.Printf("Starting web server...")
|
||||
startWeb(ws)
|
||||
log.Printf("Starting web server on %s...", *bind)
|
||||
startWeb(ws, *bind)
|
||||
select {}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user