diff --git a/lib/memberlist.go b/lib/memberlist.go index da219ed..3c38bac 100644 --- a/lib/memberlist.go +++ b/lib/memberlist.go @@ -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 { @@ -83,4 +83,4 @@ func InitMemberList(advertiseAddr string, knownMembers []string, port int, proxy logger.Info("Connected to cluster nodes: [ " + members + "]") return list -} \ No newline at end of file +}