Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"net/url"
"os"
"reflect"
"runtime"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -177,6 +178,13 @@ func DialContext(ctx context.Context, rawurl string) (*Client, error) {
case "":
return DialIPC(ctx, rawurl)
default:
if runtime.GOOS == "windows" && len(u.Scheme) == 1 {
for s := 'a'; s <= 'z'; s++ {
if rune(u.Scheme[0]) == s {
return DialIPC(ctx, rawurl)
}
}
}
return nil, fmt.Errorf("no known transport for URL scheme %q", u.Scheme)
}
}
Expand Down