Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssa committed Nov 24, 2024
1 parent 1fb013a commit 8718412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/memberlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func InitMemberList(advertiseAddr string, knownMembers []string, port int, proxyPort string, manager *QueueManager) *memberlist.Memberlist {
config := memberlist.DefaultLANConfig()
config.BindPort = port
if os.Getenv("FORCE_BIND_FDEF") == "true" && advertiseAddr != "" {
if os.Getenv("FORCE_BIND_FDEF") != "true" && advertiseAddr != "" {
// i'm pretty sure being able to pass a dns name into BIND_IP is a quirk of go's http server
// but it's useful for us, so let's handle that for memberlist as well
if net.ParseIP(advertiseAddr) == nil {
Expand Down Expand Up @@ -83,4 +83,4 @@ func InitMemberList(advertiseAddr string, knownMembers []string, port int, proxy

logger.Info("Connected to cluster nodes: [ " + members + "]")
return list
}
}

0 comments on commit 8718412

Please sign in to comment.