OverviewFilesCommitsIssuesDocsReleasesPeers

hyperident-gateway commits / ba94604

Fix: Only announce gateway IP, not service IPs
Service IPs (10.22.0.10, 10.22.0.5) are local services running on each gateway. They should NOT be announced in the P2P routing table. Each gateway should only announce its own IP: - tabertron: 10.22.0.1 - ashatron: 10.22.0.2 When a packet arrives for a service IP (e.g., 10.22.0.10), the gateway routes it locally to 127.0.0.1:9418, not over P2P. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ba9460405d16bafc83534338dff83661ed905cca
by plankatron <fleeky@gmail.com> · 2026-01-17T18:18:42.000Z

Changed files (1) +2 -6

lib/gateway-identity.js +2 -6
……@@ -188,16 +188,12 @@ export class GatewayIdentity {
188188 getOwnedIPs() {
189189 const ips = []
190190
191 // Add gateway's own IP first
191 // Only announce gateway's own IP
192 // Service IPs are handled locally and not routed via P2P
192193 if (this.gatewayIP) {
193194 ips.push(this.gatewayIP)
194195 }
195196
196 // Add all service IPs
197 for (const service of this.services.values()) {
198 ips.push(service.ip)
199 }
200
201197 return ips
202198 }
203199