summaryrefslogtreecommitdiffhomepage
path: root/tsnet/example/tshello
AgeCommit message (Collapse)AuthorFilesLines
2023-01-27all: update copyright and license headersWill Norris1-3/+2
This updates all source files to use a new standard header for copyright and license declaration. Notably, copyright no longer includes a date, and we now use the standard SPDX-License-Identifier header. This commit was done almost entirely mechanically with perl, and then some minimal manual fixes. Updates #6865 Signed-off-by: Will Norris <will@tailscale.com>
2022-11-25tsnet/example/tshello: use the correct LocalClient for certsMaisem Ali1-2/+1
Fixes #6485 Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-11-07tsnet/example/tshello: use strings.Cut (#6198)Xe Iaso1-3/+1
strings.Cut allows us to be more precise here. This example was written before strings.Cut existed. Signed-off-by: Xe <xe@tailscale.com> Signed-off-by: Xe <xe@tailscale.com>
2022-10-17tsnet/examples/tshello: update example for LocalClient method (#5966)Xe Iaso1-1/+6
Before this would silently fail if this program was running on a machine that was not already running Tailscale. This patch changes the WhoIs call to use the tsnet.Server LocalClient instead of the global tailscale LocalClient. Signed-off-by: Xe <xe@tailscale.com> Signed-off-by: Xe <xe@tailscale.com>
2022-10-10all: fix more resource leaks found by staticmajorEmmanuel T Odeke1-0/+3
Updates #5706 Signed-off-by: Emmanuel T Odeke <emmanuel@orijtech.com>
2021-10-12tsnet: add TLS and LetsEncrypt example.Maisem Ali1-1/+13
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2021-10-07tsnet: run the LocalAPI handlerMaisem Ali1-3/+4
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2021-05-14tsnet: add Tailscale-as-a-library packageBrad Fitzpatrick1-0/+43
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>