Remove trailing newline from served hostname in serve_hostname
This commit is contained in:
@@ -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))
|
||||||
|
Reference in New Issue
Block a user