github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/network/export_test.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package network 5 6 var NetLookupIP = &netLookupIP 7 8 func SetPreferIPv6(value bool) { 9 globalPreferIPv6 = value 10 } 11 12 func GetPreferIPv6() bool { 13 return globalPreferIPv6 14 }