mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +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 {
|
if err != nil {
|
||||||
log.Fatalf("Error from os.Hostname(): %s", err)
|
log.Fatalf("Error from os.Hostname(): %s", err)
|
||||||
}
|
}
|
||||||
hostname += "\n"
|
|
||||||
|
|
||||||
if *doTcp {
|
if *doTcp {
|
||||||
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", *port))
|
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", *port))
|
||||||
|
Loading…
Reference in New Issue
Block a user