mirror of https://github.com/gorilla/websocket.git
removing the hardcoded 127.0.0.1
makes it easy to connect when running the code in a remote VM, for example.
This commit is contained in:
parent
ea4d1f681b
commit
4fe10c9722
|
@ -18,7 +18,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
addr = flag.String("addr", "127.0.0.1:8080", "http service address")
|
||||
addr = flag.String("addr", ":8080", "http service address")
|
||||
cmdPath string
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue