5c40052d39
The LP registration client opened its TCP connection to the gateway control port with a plain TcpStream::connect, without invoking the connection_fd_callback used by the websocket registration path. On Linux the callback sets SO_MARK (fwmark) so the daemon's own firewall allows the connection during the connecting state; without it the unmarked SYN matched no allow rule and was rejected locally with ECONNREFUSED. The daemon blamed the gateway, blacklisted it, and cycled through every gateway the same way, making it impossible to connect when LP registration is enabled. Plumb the existing connection_fd_callback from the builder config through RegistrationClientConfig into the LP client via an optional dialer, which creates the socket, applies the callback before connect(), and only then dials. The fd callback must run before connect so the SYN itself carries the mark. The exit gateway needs no dialer: its registration is forwarded through the entry gateway's nested session and never opens its own TCP connection.
Nym SDK (Typescript)
Packages
- SDK - the Nym SDK package
Examples
- Plain HTML + Javascript - very simple chat app written in plain Javascript
- Chat App - simple chat app written in React with Webpack
Coming soon:
- Node tester - a React app that sends test packets to a mixnode and measure the network speed
- Mixnet topology viewer - a Svelte app that shows the mixnodes current in the active set
- Get a bandwidth voucher - get a bandwidth voucher to use the mixnet