From efada3bd282c5a195e69a1b574bce2def7f0c808 Mon Sep 17 00:00:00 2001 From: Gregory Man Date: Thu, 29 Oct 2015 14:30:26 +0200 Subject: [PATCH] Fix local interface name on OS X --- command/agent/config.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/command/agent/config.go b/command/agent/config.go index 9b10f2348..dc4a4b692 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -7,6 +7,7 @@ import ( "net" "os" "path/filepath" + "runtime" "strings" "github.com/hashicorp/hcl" @@ -220,7 +221,12 @@ func DevConfig() *Config { conf.DevMode = true conf.EnableDebug = true conf.DisableAnonymousSignature = true - conf.Client.NetworkInterface = "lo" + if runtime.GOOS == "darwin" { + conf.Client.NetworkInterface = "lo0" + } else { + conf.Client.NetworkInterface = "lo" + } + return conf }