Skip to content

Commit 333844f

Browse files
committed
fix invalid multiaddr [skip ci]
1 parent 8b1eadc commit 333844f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/config/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ impl DriaComputeNodeConfig {
8989
}
9090
log::info!("Models: {}", model_config);
9191

92-
let p2p_listen_addr =
93-
env::var("DKN_P2P_LISTEN_ADDR").unwrap_or(DEFAULT_P2P_LISTEN_ADDR.to_string());
92+
let p2p_listen_addr = env::var("DKN_P2P_LISTEN_ADDR")
93+
.map(|addr| addr.trim_matches('"').to_string())
94+
.unwrap_or(DEFAULT_P2P_LISTEN_ADDR.to_string());
9495

9596
Self {
9697
admin_public_key,

0 commit comments

Comments
 (0)