code: func getIPVersion(config *networkConfiguration) ipVersion {
  	ipVersion := ipv4
  	if config.AddressIPv6 != nil || config.EnableIPv6 {
  		ipVersion |= ipv6
  	}
  	return ipVersion
  }
docs: //Gets the IP version in use ( [ipv4], [ipv6] or [ipv4 and ipv6] )