diff --git a/README.md b/README.md index 51467e1..c1a2847 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ config :libcluster, ssl: true, # optional, please refer to the Postgrex docs ssl_opts: nil, + # optional, please refer to the Postgrex docs + socket_options: nil, # optional, defaults to node cookie channel_name: "cluster" ], diff --git a/lib/strategy.ex b/lib/strategy.ex index 25d5dfc..3adb48c 100644 --- a/lib/strategy.ex +++ b/lib/strategy.ex @@ -34,6 +34,7 @@ defmodule LibclusterPostgres.Strategy do port: Keyword.fetch!(state.config, :port), ssl: Keyword.get(state.config, :ssl), ssl_opts: Keyword.get(state.config, :ssl_opts), + socket_options: Keyword.get(state.config, :socket_options, []), parameters: Keyword.fetch!(state.config, :parameters), channel_name: channel_name ]