MCPcopy
hub / github.com/syncthing/syncthing / GetLocalIPv4Address

Method GetLocalIPv4Address

lib/nat/interface.go:32–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30type Device interface {
31 ID() string
32 GetLocalIPv4Address() net.IP
33 AddPortMapping(ctx context.Context, protocol Protocol, internalPort, externalPort int, description string, duration time.Duration) (int, error)
34 AddPinhole(ctx context.Context, protocol Protocol, addr Address, duration time.Duration) ([]net.IP, error)
35 GetExternalIPv4Address(ctx context.Context) (net.IP, error)

Callers 2

verifyExistingLockedMethod · 0.65
acquireNewLockedMethod · 0.65

Implementers 2

wrapperlib/pmp/pmp.go
IGDServicelib/upnp/igd_service.go

Calls

no outgoing calls

Tested by

no test coverage detected