Skip to content

Commit ecc1288

Browse files
authored
Merge pull request #290 from Dstack-TEE/gw-fix-redundant-ip
gw: Remove duplicate node IP address
2 parents dd950fa + 987e295 commit ecc1288

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gateway/src/main_service.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ impl ProxyInner {
110110
None
111111
})
112112
.unwrap_or_default();
113+
state
114+
.nodes
115+
.retain(|_, info| info.wg_peer.ip != config.wg.ip.to_string());
113116
state.nodes.insert(
114117
config.wg.public_key.clone(),
115118
GatewayNodeInfo {

0 commit comments

Comments
 (0)