Expose the enableIPv6 setting
Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
This commit is contained in:
parent
16efd61364
commit
01d2ad412f
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,7 @@ type NetworkInfo interface {
|
|||
IpamInfo() ([]*IpamInfo, []*IpamInfo)
|
||||
DriverOptions() map[string]string
|
||||
Scope() string
|
||||
IPv6Enabled() bool
|
||||
Internal() bool
|
||||
}
|
||||
|
||||
|
@ -1237,3 +1238,10 @@ func (n *network) Internal() bool {
|
|||
|
||||
return n.internal
|
||||
}
|
||||
|
||||
func (n *network) IPv6Enabled() bool {
|
||||
n.Lock()
|
||||
defer n.Unlock()
|
||||
|
||||
return n.enableIPv6
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue