mirror of https://github.com/portainer/portainer
16 lines
242 B
Go
16 lines
242 B
Go
|
// +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)
|
||
|
}
|