Skip to content

Commit

Permalink
fix(pkg/client): pass unix socket path config
Browse files Browse the repository at this point in the history
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>

Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
  • Loading branch information
2 people authored and poiana committed May 25, 2020
1 parent 39bf616 commit 219ca3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func NewForConfig(config *Config) (*Client, error) {

func newUnixSocketClient(config *Config) (*Client, error) {
dialOption := grpc.WithInsecure()
conn, err := grpc.Dial("unix:///var/run/falco.sock", dialOption)
conn, err := grpc.Dial(config.UnixSocketPath, dialOption)
if err != nil {
return nil, fmt.Errorf("error dialing server: %v", err)
}
Expand Down

0 comments on commit 219ca3c

Please sign in to comment.