Skip to content

Commit

Permalink
Fix: dot not use 0.0.0.0 ad listen address by default. Use 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Mar 6, 2019
1 parent fd0fb61 commit 8e0c5e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gossip/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestLeave(t *testing.T) {
conf := DefaultConfig()
conf.NodeName = "testNode"
conf.Role = member.Auditor
conf.BindAddr = "0.0.0.0:12346"
conf.BindAddr = "127.0.0.1:12346"
a, _ := NewAgent(conf, []Processor{FakeProcessor{}})

testCases := []struct {
Expand Down Expand Up @@ -117,7 +117,7 @@ func TestShutdown(t *testing.T) {
conf := DefaultConfig()
conf.NodeName = "testNode"
conf.Role = member.Auditor
conf.BindAddr = "0.0.0.0:12347"
conf.BindAddr = "127.0.0.1:12347"
a, _ := NewAgent(conf, []Processor{FakeProcessor{}})

testCases := []struct {
Expand Down
2 changes: 1 addition & 1 deletion gossip/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const DefaultBindPort int = 7946
// DefaultConfig contains the defaults for configurations.
func DefaultConfig() *Config {
return &Config{
BindAddr: "0.0.0.0:12345",
BindAddr: "127.0.0.1:12345",
AdvertiseAddr: "",
LeaveOnTerm: true,
EnableCompression: false,
Expand Down

0 comments on commit 8e0c5e5

Please sign in to comment.