mirror of https://github.com/k3s-io/k3s
Merge pull request #3654 from satnam6502/serve-hostname
Remove trailing newline from served hostname in serve_hostnamepull/6/head
commit
2d2374c5d3
|
@ -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