aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-19 11:24:33 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-19 11:45:44 +0100
commitb96f84b894684ed43e281a3aa2f391b424414a84 (patch)
treea55cb8b6f3306acbd3bd1a90add88e33405680fc /src/util
parentf0bbad2db95b00ec429f498fe15f1007bd87da5e (diff)
downloadgarage-b96f84b894684ed43e281a3aa2f391b424414a84.tar.gz
garage-b96f84b894684ed43e281a3aa2f391b424414a84.zip
[networking-fixes] add option to bind outgoing RPC sockets (fix #638)
Thanks to yuka for the original patch.
Diffstat (limited to 'src/util')
-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>,