Clearing your node's public endpoint now takes effect without a restart
TL;DR: From v0.0.127, clearing public_endpoint in your node's settings takes effect at the next reload, settings.json is never overwritten when it can't be read, and UPnP mappings left by unanswered router requests are removed.
If you set a public endpoint in your node’s settings and later cleared it, your node kept using the old endpoint until you restarted it. From v0.0.127, clearing it takes effect the next time the node reloads its settings. This release also makes sure your settings file is never overwritten when it can’t be read, and removes UPnP mappings that used to be left behind on your router.
Clearing your public endpoint
- Clearing
public_endpointtakes effect at the next reload. Your node goes back to the endpoint it started with. If it has none, it uses the latest address from UPnP, and if there isn’t one, it has no endpoint. - An endpoint set with
PUBLIC_ENDPOINTis never cleared. It stays in place, and if a settings endpoint was set over it, clearing that one brings it back.
Your settings are saved safely
- settings.json is written in one step, so a reload never reads a half-written file. Its owner and permissions are kept, and so is a symlink if the file is one.
- A settings.json that can’t be read is never overwritten.
configureexits with an error, a remote settings change skips the save, andinstallleaves the running service alone. login --forcekeeps your other settings. It used to replace them.
UPnP
- Leftover mappings are removed. That covers a first UDP mapping your router never answered, and a TCP retry cancelled when the node shuts down. A mapping your router refused is left alone, since the port may belong to another device.
/statsshowsupnpConflictWithdrawals: how many times a conflict with a port forward you set up yourself stopped your node advertising its UPnP address. The warning that tells you how to fix the conflict is unchanged. The UPnP renewals entry has more on how your node uses UPnP.
Limits
- A node that started with an endpoint in its settings never ran UPnP. If clearing the endpoint leaves it with none, it uses the relay until its next restart, and UPnP runs then.
What you need to do
Update your node to v0.0.127 or later.