mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Add vboxnet0 to the list of interface names that shouldn't be used for testing (#1053)
This commit is contained in:
committed by
Reed Allman
parent
f847402f67
commit
30bbb1f1be
@@ -240,7 +240,7 @@ func getEnvInt(key string, fallback int) int {
|
||||
func whoAmI() net.IP {
|
||||
ints, _ := net.Interfaces()
|
||||
for _, i := range ints {
|
||||
if i.Name == "docker0" || i.Name == "lo" {
|
||||
if i.Name == "docker0" || i.Name == "vboxnet0" || i.Name == "lo" {
|
||||
// not perfect
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user