From 66d741aa3e0984266fe671336008831df71d8c1e Mon Sep 17 00:00:00 2001 From: Jordan Whited Date: Wed, 2 Apr 2025 16:05:40 -0700 Subject: [PATCH] tailcfg: add relay client and server NodeAttr's (#15513) Updates tailscale/corp#27502 Signed-off-by: Jordan Whited --- tailcfg/tailcfg.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 30672bc6f..de34cc7f0 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -2446,6 +2446,14 @@ const ( // native tailnet. This is currently only sent to Hello, in its // peer node list. NodeAttrNativeIPV4 NodeCapability = "native-ipv4" + + // NodeAttrRelayServer permits the node to act as an underlay UDP relay + // server. There are no expected values for this key in NodeCapMap. + NodeAttrRelayServer NodeCapability = "relay:server" + + // NodeAttrRelayClient permits the node to act as an underlay UDP relay + // client. There are no expected values for this key in NodeCapMap. + NodeAttrRelayClient NodeCapability = "relay:client" ) // SetDNSRequest is a request to add a DNS record.