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

17 lines
243 B
Go
Raw Normal View History

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