Skip to content

android: set hostname fn#739

Merged
kari-ts merged 1 commit intomainfrom
kari/localhost
Feb 20, 2026
Merged

android: set hostname fn#739
kari-ts merged 1 commit intomainfrom
kari/localhost

Conversation

@kari-ts
Copy link
Collaborator

@kari-ts kari-ts commented Feb 20, 2026

Use device name, with hardware model as a fallback for hostname in Android, since os.Hostname returns localhost

Updates tailscale/tailscale#7875

@kari-ts kari-ts requested review from barnstar and nickkhyl February 20, 2026 18:04
Copy link
Contributor

@nickkhyl nickkhyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name and the docstring on the modelName are confusing.

// modelName return the MANUFACTURER + MODEL from
// android.os.Build.
func (a *App) modelName() string {
model, err := a.appCtx.GetDeviceName()

But the implementation does in fact what this PR says, and the naming/docstring are not new, so LGTM. But maybe s/modelName/deviceName/ here or in a follow-up?

Use device name, with hardware model as a fallback for hostname in Android, since os.Hostname returns localhost

Updates tailscale/tailscale#7875

Signed-off-by: kari-ts <kari@tailscale.com>
@kari-ts kari-ts merged commit 80a5b7c into main Feb 20, 2026
4 checks passed
@kari-ts kari-ts deleted the kari/localhost branch February 20, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants