tailcfg,hostinfo: add App field to identify tsnet uses

This allows us to differentiate between the various tsnet apps that
we have like `golinks` and `k8s-operator`.

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2023-02-27 09:58:54 -08:00
committed by Maisem Ali
parent 780c56e119
commit 49c206fe1e
6 changed files with 33 additions and 2 deletions

View File

@@ -99,9 +99,9 @@ func main() {
tsClient.HTTPClient = credentials.Client(context.Background())
if shouldRunAuthProxy {
hostinfo.SetPackage("k8s-operator-proxy")
hostinfo.SetApp("k8s-operator-proxy")
} else {
hostinfo.SetPackage("k8s-operator")
hostinfo.SetApp("k8s-operator")
}
s := &tsnet.Server{