Skip to content

Commit 228c539

Browse files
committed
Expose the enableIPv6 setting
Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
1 parent d1a195a commit 228c539

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)