错误日志查询问题修复

This commit is contained in:
robin
2026-02-08 22:44:12 +08:00
parent b7388d83b0
commit 4812ad5aaf
14 changed files with 57299 additions and 57088 deletions

BIN
EdgeNode/go.tar.gz Normal file

Binary file not shown.

View File

@@ -15,7 +15,7 @@ func ListenReuseAddr(network string, addr string) (net.Listener, error) {
config := &net.ListenConfig{
Control: func(network, address string, c syscall.RawConn) error {
return c.Control(func(fd uintptr) {
err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_REUSEPORT, 1)
err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, 15, 1) // 15 = SO_REUSEPORT on Linux
if err != nil {
logs.Println("[LISTEN]" + err.Error())
}

View File

@@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
package injectionutils
@@ -8,8 +11,6 @@ package injectionutils
#include <libinjection.h>
#include <stdlib.h>
*/
//go:build cgo
import "C"
import (
"github.com/TeaOSLab/EdgeNode/internal/utils/fasttime"

View File

@@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
package injectionutils
@@ -8,8 +11,6 @@ package injectionutils
#include <libinjection.h>
#include <stdlib.h>
*/
//go:build cgo
import "C"
import (
"github.com/TeaOSLab/EdgeNode/internal/utils/fasttime"