buildkit/util/network/netproviders/network_unix.go

18 lines
342 B
Go
Raw Normal View History

// +build !windows
package netproviders
import (
"github.com/moby/buildkit/util/network"
"github.com/sirupsen/logrus"
)
func getHostProvider() (network.Provider, bool) {
return network.NewHostProvider(), true
}
func getFallback() network.Provider {
logrus.Warn("using host network as the default")
return network.NewHostProvider()
}