MCPcopy Create free account
hub / github.com/DNAProject/DNA / IsOwnAddress

Method IsOwnAddress

p2pserver/net/netserver/netserver.go:623–625  ·  view source on GitHub ↗

check own network address

(addr string)

Source from the content-addressed store, hash-verified

621
622//check own network address
623func (this *NetServer) IsOwnAddress(addr string) bool {
624 return addr == this.OwnAddress
625}
626
627//Set own network address
628func (this *NetServer) SetOwnAddress(addr string) {

Callers 1

ConnectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected