portainer/api/http/handler/websocket/dial_windows.go

17 lines
261 B
Go

//go:build windows
// +build windows
package websocket
import (
"github.com/Microsoft/go-winio"
"net"
)
func createDial(scheme, host string) (net.Conn, error) {
if scheme == "npipe" {
return winio.DialPipe(host, nil)
}
return net.Dial(scheme, host)
}