mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
derp,wgengine/magicsock: don't assume stringer is in $PATH for go:generate
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
effee49e45
commit
b622c60ed0
@ -737,7 +737,7 @@ func (c *sclient) handleFrameSendPacket(ft frameType, fl uint32) error {
|
|||||||
// dropReason is why we dropped a DERP frame.
|
// dropReason is why we dropped a DERP frame.
|
||||||
type dropReason int
|
type dropReason int
|
||||||
|
|
||||||
//go:generate go run tailscale.com/cmd/addlicense -year 2021 -file dropreason_string.go stringer -type=dropReason -trimprefix=dropReason
|
//go:generate go run tailscale.com/cmd/addlicense -year 2021 -file dropreason_string.go go run golang.org/x/tools/cmd/stringer -type=dropReason -trimprefix=dropReason
|
||||||
|
|
||||||
const (
|
const (
|
||||||
dropReasonUnknownDest dropReason = iota // unknown destination pubkey
|
dropReasonUnknownDest dropReason = iota // unknown destination pubkey
|
||||||
|
@ -3490,7 +3490,7 @@ func (de *discoEndpoint) sendDiscoPing(ep netaddr.IPPort, txid stun.TxID, logLev
|
|||||||
// discoPingPurpose is the reason why a discovery ping message was sent.
|
// discoPingPurpose is the reason why a discovery ping message was sent.
|
||||||
type discoPingPurpose int
|
type discoPingPurpose int
|
||||||
|
|
||||||
//go:generate go run tailscale.com/cmd/addlicense -year 2020 -file discopingpurpose_string.go stringer -type=discoPingPurpose -trimprefix=ping
|
//go:generate go run tailscale.com/cmd/addlicense -year 2020 -file discopingpurpose_string.go go run golang.org/x/tools/cmd/stringer -type=discoPingPurpose -trimprefix=ping
|
||||||
const (
|
const (
|
||||||
// pingDiscovery means that purpose of a ping was to see if a
|
// pingDiscovery means that purpose of a ping was to see if a
|
||||||
// path was valid.
|
// path was valid.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user