MCPcopy Index your code
hub / github.com/tailscale/tailscale / isLoopbackPort

Method isLoopbackPort

wgengine/netstack/netstack.go:831–836  ·  view source on GitHub ↗
(port uint16)

Source from the content-addressed store, hash-verified

829}
830
831func (ns *Impl) isLoopbackPort(port uint16) bool {
832 if ns.loopbackPort != nil && int(port) == *ns.loopbackPort {
833 return true
834 }
835 return false
836}
837
838// handleLocalPackets is hooked into the tun datapath for packets leaving
839// the host and arriving at tailscaled. This method returns filter.DropSilently

Callers 2

acceptTCPMethod · 0.95
acceptUDPMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected