summaryrefslogtreecommitdiffhomepage
path: root/tsnet/example
AgeCommit message (Collapse)AuthorFilesLines
2023-08-10client/web: add barebones vite dev setupSonia Appasamy1-1/+2
Currently just serving a "Hello world" page when running the web cli in --dev mode. Updates tailscale/corp#13775 Co-authored-by: Will Norris <will@tailscale.com> Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
2023-08-10tsnet: add new example serving the Tailscale web clientWill Norris1-0/+44
Updates tailscale/corp#13775 Co-authored-by: Sonia Appasamy <sonia@tailscale.com> Signed-off-by: Will Norris <will@tailscale.com> Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
2023-03-11tsnet: add CertDomains helper (#7533)Maisem Ali1-0/+2
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2023-03-11ipn: add Funnel port check from nodeAttrMaisem Ali1-1/+1
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2023-03-11tsnet: add ListenFunnelMaisem Ali1-106/+16
This lets a tsnet binary share a server out over Tailscale Funnel. Signed-off-by: David Crawshaw <crawshaw@tailscale.com> Signed-off-by: Maisem Ali <maisem@tailscale.com> Signed-off-by: Shayne Sweeney <shayne@tailscale.com>
2023-03-09ipn/ipnlocal: add support for funnel in tsnetMaisem Ali1-0/+131
Previously the part that handled Funnel connections was not aware of any listeners that tsnet.Servers might have had open so it would check against the ServeConfig and fail. Adding a ServeConfig for a TCP proxy was also not suitable in this scenario as that would mean creating two different listeners and have one forward to the other, which really meant that you could not have funnel and tailnet-only listeners on the same port. This also introduces the ipn.FunnelConn as a way for users to identify whether the call is coming over funnel or not. Currently it only holds the underlying conn and the target as presented in the "Tailscale-Ingress-Target" header. Signed-off-by: Maisem Ali <maisem@tailscale.com>
2023-01-27all: update copyright and license headersWill Norris2-6/+4
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-12-09all: update golang.zx2c4.com/wireguard to github.com/tailscale/wireguard-go ↵Jordan Whited1-1/+1
(#6692) This is temporary while we work to upstream performance work in https://github.com/WireGuard/wireguard-go/pull/64. A replace directive is less ideal as it breaks dependent code without duplication of the directive. Signed-off-by: Jordan Whited <jordan@tailscale.com>
2022-12-08tsnet: add HTTP client method to tsnet.Server (#6669)Xe Iaso1-0/+45
This allows tsnet services to make requests to other services in the tailnet with the tsnet service identity instead of the identity of the host machine. This also enables tsnet services to make requests to other tailnet services without having to have the host machine join the tailnet. Signed-off-by: Xe Iaso <xe@tailscale.com> Signed-off-by: Xe Iaso <xe@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>