summaryrefslogtreecommitdiffhomepage
path: root/cmd/hello
AgeCommit message (Collapse)AuthorFilesLines
2025-03-04cmd/hello: display native ipv4 (#15191)Brian Palmer1-0/+5
We are soon going to start assigning shared-in nodes a CGNAT IPv4 in the Hello tailnet when necessary, the same way that normal node shares assign a new IPv4 on conflict. But Hello wants to display the node's native IPv4, the one it uses in its own tailnet. That IPv4 isn't available anywhere in the netmap today, because it's not normally needed for anything. We are going to start sending that native IPv4 in the peer node CapMap, only for Hello's netmap responses. This change enables Hello to display that native IPv4 instead, when available. Updates tailscale/corp#25393 Change-Id: I87480b6d318ab028b41ef149eb3ba618bd7f1e08 Signed-off-by: Brian Palmer <brianp@tailscale.com>
2025-02-05all: use new LocalAPI client package locationBrad Fitzpatrick1-2/+2
It was moved in f57fa3cbc30e. Updates tailscale/corp#22748 Change-Id: I19f965e6bded1d4c919310aa5b864f2de0cd6220 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-02-02cmd/hello: link to the Hello KB article (#11022)Chris Palmer1-0/+2
Fixes https://github.com/tailscale/corp/issues/17104 Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
2024-01-29cmd/hello: avoid deprecated apis (#10957)Chris Palmer1-3/+5
Updates #cleanup Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
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-09-15refactor: move from io/ioutil to io and os packagesEng Zer Jun1-2/+1
The io/ioutil package has been deprecated as of Go 1.16 [1]. This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Reference: https://golang.org/doc/go1.16#ioutil Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-07-25net/netaddr: start migrating to net/netip via new netaddr adapter packageBrad Fitzpatrick1-3/+3
Updates #5162 Change-Id: Id7bdec303b25471f69d542f8ce43805328d56c12 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-03-19all: use strings.Cut even moreBrad Fitzpatrick1-3/+1
Change-Id: I943ce72c6f339589235bddbe10d07799c4e37979 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-02-16tailcfg: make Node.Hostinfo a HostinfoViewMaisem Ali1-1/+1
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-01-04cmd/hello: also redirect https://hello.ipn.dev to hello.ts.netBrad Fitzpatrick1-0/+4
I apparently only did HTTP before, not HTTPS. Updates tailscale/corp#1327 Change-Id: I7d5265a0a25fcab5b142c8c3f21a0920f6cae39f Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-01-04cmd/hello: migrate to hello.ts.net as the hostnameBrad Fitzpatrick1-8/+32
But still support hello.ipn.dev for a bit. Updates tailscale/corp#1327 Change-Id: Iab59cca0b260d69858af16f4e42677e54f9fe54a Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-05-16all: adapt to opaque netaddr typesJosh Bleecher Snyder1-3/+3
This commit is a mishmash of automated edits using gofmt: gofmt -r 'netaddr.IPPort{IP: a, Port: b} -> netaddr.IPPortFrom(a, b)' -w . gofmt -r 'netaddr.IPPrefix{IP: a, Port: b} -> netaddr.IPPrefixFrom(a, b)' -w . gofmt -r 'a.IP.Is4 -> a.IP().Is4' -w . gofmt -r 'a.IP.As16 -> a.IP().As16' -w . gofmt -r 'a.IP.Is6 -> a.IP().Is6' -w . gofmt -r 'a.IP.As4 -> a.IP().As4' -w . gofmt -r 'a.IP.String -> a.IP().String' -w . And regexps: \w*(.*)\.Port = (.*) -> $1 = $1.WithPort($2) \w*(.*)\.IP = (.*) -> $1 = $1.WithIP($2) And lots of manual fixups. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-04-13client/tailscale/apitype: move local API types to new apitype packageBrad Fitzpatrick1-2/+2
They were scattered/duplicated in misc places before. It can't be in the client package itself for circular dep reasons. This new package is basically tailcfg but for localhost communications, instead of to control. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-03-15client, cmd/hello, ipn, wgengine: fix whois for netstack-forwarded connectionsNaman Sood1-3/+19
Updates #504 Updates #707 Signed-off-by: Naman Sood <mail@nsood.in>
2021-03-01cmd/hello: break out local HTTP client into client/tailscaleBrad Fitzpatrick1-69/+23
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-03-01cmd/hello: use go:embed for the templateBrad Fitzpatrick1-1/+8
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-02-15cmd/hello: make whois client work on macOS against GUI clientBrad Fitzpatrick1-1/+30
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-02-11cmd/hello: truncate long strings (#1328)Ross Zurowski1-6/+21
Signed-off-by: Ross Zurowski <ross@rosszurowski.com>
2021-02-11cmd/hello: chop DNS name at first dotBrad Fitzpatrick1-1/+9
2021-02-11cmd/hello: style welcome message (#1325)Ross Zurowski2-28/+438
Signed-off-by: Ross Zurowski <ross@rosszurowski.com>
2021-02-11cmd/hello: serve fake data in dev mode on whois failureBrad Fitzpatrick1-9/+21
2021-02-11cmd/hello: in dev mode, live reload templateBrad Fitzpatrick1-1/+20
2021-01-29cmd/hello: use safesocket client to connectBrad Fitzpatrick1-6/+4
2021-01-29ipn/ipnserver, cmd/hello: do whois over unix socket, not debug httpBrad Fitzpatrick1-3/+23
Start of a local HTTP API. Not a stable interface yet.
2021-01-29cmd/hello: new hello.ipn.dev serverBrad Fitzpatrick2-0/+133
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>