aboutsummaryrefslogtreecommitdiff
path: root/src/util/config.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2024-02-19 11:44:05 +0000
committerAlex <alex@adnab.me>2024-02-19 11:44:05 +0000
commit6bb34899f225141e65e79fe140b9abca29b39fd6 (patch)
tree250bb249084a3c4678c0088fcba0eb52d8344181 /src/util/config.rs
parentb8217361c05883a839996a7db24be71c601e428f (diff)
parenteab54b37981073651712a15334b60b2c409f2576 (diff)
downloadgarage-6bb34899f225141e65e79fe140b9abca29b39fd6.tar.gz
garage-6bb34899f225141e65e79fe140b9abca29b39fd6.zip
Merge pull request 'fixes to RPC networking' (#721) from networking-fixes into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/721
Diffstat (limited to 'src/util/config.rs')
-rw-r--r--src/util/config.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index a9a72110..056c625d 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -55,6 +55,9 @@ pub struct Config {
pub rpc_secret_file: Option<PathBuf>,
/// Address to bind for RPC
pub rpc_bind_addr: SocketAddr,
+ /// Bind outgoing sockets to rpc_bind_addr's IP address as well
+ #[serde(default)]
+ pub rpc_bind_outgoing: bool,
/// Public IP address of this node
pub rpc_public_addr: Option<String>,