mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Remove trailing newline from served hostname in serve_hostname
This commit is contained in:
parent
0b69a3f57a
commit
88e4139774
@ -44,7 +44,6 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatalf("Error from os.Hostname(): %s", err)
|
||||
}
|
||||
hostname += "\n"
|
||||
|
||||
if *doTcp {
|
||||
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", *port))
|
||||
|
Loading…
Reference in New Issue
Block a user