Skip to content

Commit e1bf681

Browse files
committed
Merge pull request #912 from aidanhs/aphs-expose-ipv6-default-bridge
Expose the enableIPv6 setting
2 parents c039023 + 228c539 commit e1bf681

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

network.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ type NetworkInfo interface {
6262
IpamInfo() ([]*IpamInfo, []*IpamInfo)
6363
DriverOptions() map[string]string
6464
Scope() string
65+
IPv6Enabled() bool
6566
Internal() bool
6667
}
6768

@@ -1237,3 +1238,10 @@ func (n *network) Internal() bool {
12371238

12381239
return n.internal
12391240
}
1241+
1242+
func (n *network) IPv6Enabled() bool {
1243+
n.Lock()
1244+
defer n.Unlock()
1245+
1246+
return n.enableIPv6
1247+
}

0 commit comments

Comments
 (0)