Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

263 B
Raw Blame
//go:build windows

package server

import "golang.org/x/sys/windows"

func serviceHealthSocketIsDualStack(fd uintptr) bool {
	v6Only, err := windows.GetsockoptInt(windows.Handle(fd), windows.IPPROTO_IPV6, windows.IPV6_V6ONLY)
	return err == nil && v6Only == 0
}