This commit is contained in:
haibo.chen
2025-10-15 10:05:52 +08:00
parent d9709f61a5
commit 156f07644d
18 changed files with 1222 additions and 1227 deletions

View File

@ -133,7 +133,7 @@ func TestLoadConfigInvalid(t *testing.T) {
func TestGetLocalIP(t *testing.T) {
ip, err := GetLocalIP()
// 在某些环境下可能没有网络接口,所以允许返回错误
if err != nil {
t.Logf("GetLocalIP returned error (may be expected in some environments): %v", err)
@ -152,4 +152,3 @@ func TestGetLocalIP(t *testing.T) {
t.Logf("Local IP: %s", ip)
}