mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-03 14:55:47 +00:00
14 lines
214 B
Go
14 lines
214 B
Go
![]() |
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
//go:build !(cgo && darwin && !ios)
|
||
|
|
||
|
package hostinfo
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
func GetHostname() string {
|
||
|
h, _ := os.Hostname()
|
||
|
return h
|
||
|
}
|