Skip to content

Commit a4477e2

Browse files
committed
fix(pkg/client): inherit dial options that came from constructor
1 parent f55cdf1 commit a4477e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/client/client.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ func NewImmuClient(options *Options) (c ImmuClient, err error) {
166166
}
167167

168168
func setupDialOptions(options *Options) *[]grpc.DialOption {
169-
opts := []grpc.DialOption{grpc.WithInsecure()}
169+
170+
opts := *options.DialOptions
171+
opts = append(opts, grpc.WithInsecure())
170172

171173
//---------- TLS Setting -----------//
172174
if options.MTLs {

0 commit comments

Comments
 (0)