mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 12:48:51 +00:00
Remove trailing newline from served hostname in serve_hostname
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user