mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #2231 from msabansal/winnetwork
Add support for Internal and Private network types on windows
This commit is contained in:
commit
46bed879da
2 changed files with 6 additions and 1 deletions
|
@ -111,7 +111,10 @@ const (
|
|||
|
||||
// IsBuiltinLocalDriver validates if network-type is a builtin local-scoped driver
|
||||
func IsBuiltinLocalDriver(networkType string) bool {
|
||||
if "l2bridge" == networkType || "l2tunnel" == networkType || "nat" == networkType || "ics" == networkType || "transparent" == networkType {
|
||||
if "l2bridge" == networkType || "l2tunnel" == networkType ||
|
||||
"nat" == networkType || "ics" == networkType ||
|
||||
"transparent" == networkType || "internal" == networkType ||
|
||||
"private" == networkType {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,8 @@ func getInitializers(experimental bool) []initializer {
|
|||
{windows.GetInit("l2bridge"), "l2bridge"},
|
||||
{windows.GetInit("l2tunnel"), "l2tunnel"},
|
||||
{windows.GetInit("nat"), "nat"},
|
||||
{windows.GetInit("internal"), "internal"},
|
||||
{windows.GetInit("private"), "private"},
|
||||
{windows.GetInit("ics"), "ics"},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue