Merge pull request #361 from gregory-m/lo-iface-name-fix
Fix local interface name on OS X
This commit is contained in:
commit
e76465bfd7
|
@ -7,6 +7,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hashicorp/hcl"
|
"github.com/hashicorp/hcl"
|
||||||
|
@ -220,7 +221,12 @@ func DevConfig() *Config {
|
||||||
conf.DevMode = true
|
conf.DevMode = true
|
||||||
conf.EnableDebug = true
|
conf.EnableDebug = true
|
||||||
conf.DisableAnonymousSignature = true
|
conf.DisableAnonymousSignature = true
|
||||||
|
if runtime.GOOS == "darwin" {
|
||||||
|
conf.Client.NetworkInterface = "lo0"
|
||||||
|
} else {
|
||||||
conf.Client.NetworkInterface = "lo"
|
conf.Client.NetworkInterface = "lo"
|
||||||
|
}
|
||||||
|
|
||||||
return conf
|
return conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue