Skip to content

Commit

Permalink
Merge pull request #361 from gregory-m/lo-iface-name-fix
Browse files Browse the repository at this point in the history
Fix local interface name on OS X
  • Loading branch information
diptanu committed Oct 29, 2015
2 parents 6a7e874 + efada3b commit bbea682
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion command/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net"
"os"
"path/filepath"
"runtime"
"strings"

"github.com/hashicorp/hcl"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit bbea682

Please sign in to comment.