示例#1
0
文件: toolbox.go 项目: kjplatz/vic
// defaultIP tries externalIP, falling back to toolbox.DefaultIP()
func (t *Toolbox) defaultIP() string {
	ip := t.externalIP()
	if ip != "" {
		return ip
	}

	return toolbox.DefaultIP()
}
示例#2
0
文件: main_linux.go 项目: vmware/vic
// defaultIP tries externalIP, falling back to toolbox.DefaultIP()
func defaultIP() string {
	ip := externalIP()
	if ip != "" {
		return ip
	}

	return toolbox.DefaultIP()
}