mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
16 lines
243 B
Go
16 lines
243 B
Go
// +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)
|
|
}
|