Expose the enableIPv6 setting

Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
This commit is contained in:
Aidan Hobson Sayers 2016-01-29 18:10:06 +00:00
parent 16efd61364
commit 01d2ad412f

View file

@ -62,6 +62,7 @@ type NetworkInfo interface {
IpamInfo() ([]*IpamInfo, []*IpamInfo) IpamInfo() ([]*IpamInfo, []*IpamInfo)
DriverOptions() map[string]string DriverOptions() map[string]string
Scope() string Scope() string
IPv6Enabled() bool
Internal() bool Internal() bool
} }
@ -1237,3 +1238,10 @@ func (n *network) Internal() bool {
return n.internal return n.internal
} }
func (n *network) IPv6Enabled() bool {
n.Lock()
defer n.Unlock()
return n.enableIPv6
}