Skip to content

Commit c60b970

Browse files
ascheyrogchap
andauthored
Prevent addresses from being restricted to tcp (#75)
Co-authored-by: Roger Chapman <[email protected]>
1 parent fe95305 commit c60b970

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

CHANGELOG.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9-
## [v0.5.1] - 2021-11-22
10-
119
### Added
12-
- Support google.protobuf.Struct
10+
- Support for connecting to unix sockets. Thanks to [@aschey](https://github.com/aschey)
11+
- Support google.protobuf.Struct. Thanks to [@n0trace](https://github.com/n0trace)
1312

1413
## [v0.5.0] - 2021-04-26
1514

internal/app/client.go

-6
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ func (c *client) connect(o options, h stats.Handler) error {
7575
opts = append(opts, grpc.WithInsecure())
7676
}
7777

78-
dialer := func(ctx context.Context, addr string) (net.Conn, error) {
79-
d := &net.Dialer{}
80-
return d.DialContext(ctx, "tcp", addr)
81-
}
82-
opts = append(opts, grpc.WithContextDialer(dialer))
83-
8478
var err error
8579
c.conn, err = grpc.Dial(o.Addr, opts...)
8680
if err != nil {

0 commit comments

Comments
 (0)