fix windows build

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-11-09 12:14:02 -08:00
parent 07ead9050e
commit 51ae44765c

View File

@ -3,6 +3,15 @@
package solver
import (
"fmt"
"net"
"strings"
"time"
"github.com/Microsoft/go-winio"
)
func dialStream(id string) (net.Conn, error) {
if !strings.HasPrefix(id, unixPrefix) {
return nil, fmt.Errorf("invalid socket forward key %s", id)