Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlireza Ahmadi <alireza7@gmail.com>2026-02-20 04:07:46 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2026-02-20 04:07:46 +0300
commit3ec5b3589f3358878738b0bfc52784ee924fbcdd (patch)
tree06ddd4e8e77fb2a3811ba0de4d099df3443fa0dc /util/sys/sys_windows.go
parent2b1d3e73475ed160e6f58ffd8d08c01c9acb5ca7 (diff)
fix windows build
Diffstat (limited to 'util/sys/sys_windows.go')
-rw-r--r--util/sys/sys_windows.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/sys/sys_windows.go b/util/sys/sys_windows.go
index 186fa4bb..9b6d659f 100644
--- a/util/sys/sys_windows.go
+++ b/util/sys/sys_windows.go
@@ -12,6 +12,8 @@ import (
"github.com/shirou/gopsutil/v4/net"
)
+var SIGUSR1 = syscall.Signal(0)
+
// GetConnectionCount returns the number of active connections for the specified protocol ("tcp" or "udp").
func GetConnectionCount(proto string) (int, error) {
if proto != "tcp" && proto != "udp" {