优化日志打印格式

This commit is contained in:
2025-08-21 14:51:48 +08:00
parent f6adc5b2a1
commit 7761fb1343
6 changed files with 26 additions and 25 deletions

View File

@@ -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
}