From 8078d712f94fb1b1ed410dd1f075272d4e0299b6 Mon Sep 17 00:00:00 2001 From: Roccoon Date: Tue, 2 Jul 2019 19:31:33 +0800 Subject: [PATCH] bugfix Change-Id: Ic7bc9661d1cdf3486c2d6c5aad40b0cd19f63cdb --- server/server.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/server/server.go b/server/server.go index 31e6f18..dff25bd 100644 --- a/server/server.go +++ b/server/server.go @@ -2,6 +2,12 @@ package server import ( "errors" + "math" + "os" + "strconv" + "strings" + "time" + "github.com/cnlh/nps/bridge" "github.com/cnlh/nps/lib/common" "github.com/cnlh/nps/lib/file" @@ -13,11 +19,6 @@ import ( "github.com/shirou/gopsutil/load" "github.com/shirou/gopsutil/mem" "github.com/shirou/gopsutil/net" - "math" - "os" - "strconv" - "strings" - "time" ) var ( @@ -359,7 +360,7 @@ func GetDashboardData() map[string]interface{} { case "tcp": tcp += 1 case "socks5": - udp += 1 + socks5 += 1 case "httpProxy": http += 1 case "udp":