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-25 23:09:42 +0300
committerGitHub <noreply@github.com>2026-02-25 23:09:42 +0300
commit159b85f9794576a283f981778445836dc8819a5e (patch)
tree06ddd4e8e77fb2a3811ba0de4d099df3443fa0dc /util/sys/sys_windows.go
parent37f0880f8fd2430be3737c160710d96e88895150 (diff)
parent3ec5b3589f3358878738b0bfc52784ee924fbcdd (diff)
Merge pull request #3828 from MHSanaei/restartXrayOption
[feat] restart xray-core from cli #3825
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" {