MCPcopy
hub / github.com/syncthing/syncthing / setAddressLocked

Method setAddressLocked

lib/nat/structs.go:31–34  ·  view source on GitHub ↗
(id string, addresses []Address)

Source from the content-addressed store, hash-verified

29}
30
31func (m *Mapping) setAddressLocked(id string, addresses []Address) {
32 slog.Info("New external port opened", "protocol", m.protocol, "external", addresses, "local", m.address, "gateway", id)
33 m.extAddresses[id] = addresses
34}
35
36func (m *Mapping) removeAddressLocked(id string) {
37 addresses, ok := m.extAddresses[id]

Callers 2

verifyExistingLockedMethod · 0.80
acquireNewLockedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected