优化日志打印格式
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"strings"
|
||||
@@ -29,6 +30,6 @@ func GetLocalIpv4Addr() string {
|
||||
return "NULL"
|
||||
}
|
||||
|
||||
fmt.Printf("公网IP: %s\n", ipStr)
|
||||
log.Printf(" 公网IP: %s\n", ipStr)
|
||||
return ipStr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user