What Happens:
Syncthing Settings --> Connections Tab
Sync Protocol Listen Address: default
Unticked/Disabled: Enable NAT Traversal, Global Discovery, Enable Relaying
Ticked/Enabled: Local Discovery
Syncthing whilst only Local Discovery is enabled will use UPNP and commit port forwarding as If nothing was enforced (Only Local Discovery enabed) .
This issue happens on all Syncthing 1.7.0 flavours (Linux, Android etc)
All devices are mass opening ports by means of UPNP with outside world even though ONLY Local Discovery is the only setting enabled.
Disabling Completely TCP in "Sync Protocol Listen Address" and having only quic enabled
meaning: Sync Protocol Listen Address: From default To quic://0.0.0.0:22000 or quic://10.11.10.xx
thus specifying ONLY quick mitigates Issue of forced port forwarding/opening outside ports/use of UPNP even though "Local Discovery" is the only setting in Enabled state.
What’s the point of having a “Local Discovery” setting if It keeps port forwarding/opening outside ports/uses UPNP.
Retitled for the actual issue as I understand it, local discovery having nothing to do with whether we try UPnP or not.
Can confirm lots of output with STTRACE=upnp and <natTraversal>false</natTraversal> in 1.7.0, which is not the case in 1.6.1.
When making the nat a service I stopped the timer when nat is disabled. However that timer gets reset on an exported method, effectively reenabling nat. Will fix.