Skip to content

Commit de6e453

Browse files
committed
chore: replace node port with metrics port
1 parent 112923b commit de6e453

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

crates/rpc/src/routes/add_player.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ pub async fn add_player(
2424
.map(|status| {
2525
(
2626
status.external_url.clone(),
27-
status.local_url.clone().replace("ws://", "http://"),
27+
status
28+
.local_url
29+
.clone()
30+
.replace("ws://", "http://")
31+
.replace("4001", "8000"),
2832
)
2933
})
3034
.unwrap_or_default();

crates/rpc/src/routes/new_game.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ pub async fn new_game(address: &str, state: &State<ClusterState>) -> Result<Json
3131
.map(|status| {
3232
(
3333
status.external_url.clone(),
34-
status.local_url.clone().replace("ws://", "http://"),
34+
status
35+
.local_url
36+
.clone()
37+
.replace("ws://", "http://")
38+
.replace("4001", "8000"),
3539
)
3640
})
3741
.unwrap_or_default();

0 commit comments

Comments
 (0)