redo web UI |web close| client log |system info |p2p |max、ump optimization

This commit is contained in:
刘河
2019-03-01 17:23:14 +08:00
parent 534d428c6d
commit f526c56784
82 changed files with 15199 additions and 4561 deletions

View File

@@ -13,7 +13,7 @@ func init() {
}
func TestServerPort(p int, m string) (b bool) {
if p > 65535 || p <= 0 {
if p > 65535 || p < 0 {
return false
}
if len(ports) != 0 {
@@ -21,7 +21,7 @@ func TestServerPort(p int, m string) (b bool) {
return false
}
}
if m == "udpServer" {
if m == "udp" {
b = common.TestUdpPort(p)
} else {
b = common.TestTcpPort(p)