소스 검색

Merge pull request #142 from 873314461/bugfix

bugfix
he liu 5 년 전
부모
커밋
25e71790c1
1개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 7 6
      server/server.go

+ 7 - 6
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":