Matches ctl version to upstream

This commit is contained in:
2026-03-28 20:28:22 +08:00
parent 848daefffe
commit ecceff225f
25 changed files with 591 additions and 159 deletions

View File

@@ -0,0 +1,12 @@
//go:build linux
package system
import "golang.org/x/sys/unix"
func SetHostname(hostname string) error {
if hostname == "" {
return nil
}
return unix.Sethostname([]byte(hostname))
}