Change server listener addr to 0.0.0.0
This commit is contained in:
parent
7931e2b9ca
commit
bbaacce472
|
@ -9,7 +9,7 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
// Start the listener
|
// Start the listener
|
||||||
_, err := server.StartListener("tcp://127.0.0.1:46658", example.NewCounterApplication())
|
_, err := server.StartListener("tcp://0.0.0.0:46658", example.NewCounterApplication())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Exit(err.Error())
|
Exit(err.Error())
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
// Start the listener
|
// Start the listener
|
||||||
_, err := server.StartListener("tcp://127.0.0.1:46658", example.NewDummyApplication())
|
_, err := server.StartListener("tcp://0.0.0.0:46658", example.NewDummyApplication())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Exit(err.Error())
|
Exit(err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue