upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
authorBitflash <btf01@proton.me>2026-07-29 12:45:48 -0300
committerGitHub <noreply@github.com>2026-07-29 12:45:48 -0300
commit1227068a504418521f3238acf9c4dca297141d27 (patch)
tree096e1dfb472e09783cb1a1fba1ab4961111bdfb5 /src/script.cpp
parent137a166fe0b95ccdef444041e907358bd26bc226 (diff)
main_gui: implement /port, which net.cpp already documented (#28)
net.cpp has described nListenPort as "tunable via /port" since it was written: unsigned short nListenPort = DEFAULT_PORT; // local P2P port (tunable via /port) Nothing ever parsed the option. The port was fixed at 8433, so a second node could not start on a machine already running one -- StartNode fails the bind and the node comes up with no networking at all. That makes local multi-node testing impossible, which is how this was found: a two-node test could not be run. Sets addrLocalHost.port alongside nListenPort, or the node announces a port it never bound. An out-of-range value is rejected with a message and the default kept, rather than silently wrapping through the unsigned short cast.
Diffstat (limited to 'src/script.cpp')
0 files changed, 0 insertions, 0 deletions