Skip to content

Commit ff3eb93

Browse files
authored
Merge pull request moby#2231 from msabansal/winnetwork
Add support for Internal and Private network types on windows
2 parents b4d3853 + 86043db commit ff3eb93

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

drivers/windows/windows.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ const (
111111

112112
// IsBuiltinLocalDriver validates if network-type is a builtin local-scoped driver
113113
func IsBuiltinLocalDriver(networkType string) bool {
114-
if "l2bridge" == networkType || "l2tunnel" == networkType || "nat" == networkType || "ics" == networkType || "transparent" == networkType {
114+
if "l2bridge" == networkType || "l2tunnel" == networkType ||
115+
"nat" == networkType || "ics" == networkType ||
116+
"transparent" == networkType || "internal" == networkType ||
117+
"private" == networkType {
115118
return true
116119
}
117120

drivers_windows.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ func getInitializers(experimental bool) []initializer {
1616
{windows.GetInit("l2bridge"), "l2bridge"},
1717
{windows.GetInit("l2tunnel"), "l2tunnel"},
1818
{windows.GetInit("nat"), "nat"},
19+
{windows.GetInit("internal"), "internal"},
20+
{windows.GetInit("private"), "private"},
1921
{windows.GetInit("ics"), "ics"},
2022
}
2123
}

0 commit comments

Comments
 (0)