Skip to content

Commit bf3cf03

Browse files
SashaMITcursoragent
andcommitted
fix: don't send domain in AUTH - server helper crashes the connection
The Java server's helper service is not configured on the supernode. When a domain is included in AUTH, the server attempts to call its helper API, which fails and kills the TCP connection immediately. Without domain, AUTH succeeds and the server allocates a proxy port. Domain routing is handled by our own gateway endpoint registration via registerProxyEndpoint() (which now works thanks to the connected event handler fix in the previous commit). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5dbe7e6 commit bf3cf03

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pc2-node/src/services/boson/ActiveProxyClient.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -709,16 +709,16 @@ export class ActiveProxyClient extends EventEmitter {
709709
const connectionNonce = generateNonce();
710710
this.authConnectionNonce = new Uint8Array(connectionNonce);
711711

712-
// Build plaintext payload (domain enables virtual host registration on the server)
712+
// Build plaintext payload
713+
// NOTE: Do NOT send domain - the Java server's helper service is not configured
714+
// and crashes the connection when a domain is included. We handle routing via
715+
// our own gateway endpoint registration in ConnectivityService instead.
713716
const authPayload = buildAuthPayload(
714717
this.clientKeyPair.publicKey,
715718
connectionNonce,
716719
signature,
717-
this.config.domain // Domain for nginx virtual host (e.g., "elastos" → elastos.ela.city)
720+
undefined
718721
);
719-
if (this.config.domain) {
720-
logger.info(`[ActiveProxy] AUTH includes domain: ${this.config.domain}`);
721-
}
722722

723723
// Derive XOR nonce from X25519 public keys
724724
const clientX25519Pubkey = ed25519PublicKeyToX25519(new Uint8Array(this.config.publicKey));

0 commit comments

Comments
 (0)