File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2041,13 +2041,16 @@ pub struct NodeConfig {
2041
2041
/// The publicly accessible URL that this node advertises to peers during the P2P handshake
2042
2042
/// as its HTTP RPC endpoint. Other nodes or services might use this URL to query the node's API.
2043
2043
/// ---
2044
- /// @default: `http://{rpc_bind}` (e.g., "http://0.0.0.0:20443" if [`NodeConfig::rpc_bind`] is default).
2044
+ /// @default: Derived by adding "http://" prefix to [`NodeConfig::rpc_bind`] value.
2045
+ /// @notes: |
2046
+ /// - Example: For rpc_bind="0.0.0.0:20443", data_url becomes "http://0.0.0.0:20443".
2045
2047
pub data_url : String ,
2046
2048
/// The publicly accessible IPv4 address and port that this node advertises to peers for P2P connections.
2047
2049
/// This might differ from [`NodeConfig::p2p_bind`] if the node is behind NAT or a proxy.
2048
2050
/// ---
2049
- /// @default: Derived from [`NodeConfig::rpc_bind`] (e.g., "0.0.0.0:20443" if [`NodeConfig::rpc_bind`] is default) .
2051
+ /// @default: Derived directly from [`NodeConfig::rpc_bind`] value .
2050
2052
/// @notes: |
2053
+ /// - Example: For rpc_bind="0.0.0.0:20443", p2p_address becomes "0.0.0.0:20443".
2051
2054
/// - The default value derivation might be unexpected, potentially using the
2052
2055
/// [`NodeConfig::rpc_bind`] address; explicit configuration is recommended if needed.
2053
2056
pub p2p_address : String ,
You can’t perform that action at this time.
0 commit comments