Merge pull request #1115 from aluzzardi/fix-windows-build

This commit is contained in:
Sam Alba 2021-11-09 12:48:27 -08:00 committed by GitHub
commit d3ccfc31ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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