Skip to content

Commit

Permalink
Fix local interface name on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-m committed Oct 29, 2015
1 parent 7dd7e6a commit efada3b
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 efada3b

Please sign in to comment.