Skip to content

Commit 22d332c

Browse files
author
alyssa
committed
fdaa
1 parent 8718412 commit 22d332c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/memberlist.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func InitMemberList(advertiseAddr string, knownMembers []string, port int, proxyPort string, manager *QueueManager) *memberlist.Memberlist {
1313
config := memberlist.DefaultLANConfig()
1414
config.BindPort = port
15-
if os.Getenv("FORCE_BIND_FDEF") != "true" && advertiseAddr != "" {
15+
if os.Getenv("FORCE_BIND_FDAA") != "true" && advertiseAddr != "" {
1616
// i'm pretty sure being able to pass a dns name into BIND_IP is a quirk of go's http server
1717
// but it's useful for us, so let's handle that for memberlist as well
1818
if net.ParseIP(advertiseAddr) == nil {
@@ -29,7 +29,7 @@ func InitMemberList(advertiseAddr string, knownMembers []string, port int, proxy
2929
}
3030
// i'm tired of fighting nomad/docker
3131
// just get this working
32-
log.Printf("hi %v\n", os.Getenv("FORCE_BIND_FDEF"))
32+
log.Printf("hi %v\n", os.Getenv("FORCE_BIND_FDAA"))
3333
if os.Getenv("FORCE_BIND_FDEF") == "true" {
3434
config.AdvertiseAddr = func() string {
3535
iface, err := net.InterfaceByName("eth0")
@@ -42,7 +42,7 @@ func InitMemberList(advertiseAddr string, knownMembers []string, port int, proxy
4242
}
4343
for _, v := range addrs {
4444
log.Printf("find fdef:: got addr %v\n", v.String())
45-
if strings.Contains(v.String(), "fdef:") {
45+
if strings.Contains(v.String(), "fdaa:") {
4646
return strings.Split(v.String(), "/")[0]
4747
}
4848
}

0 commit comments

Comments
 (0)