mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-02 01:37:04 +08:00
add functions
This commit is contained in:
1 parent
2c608ddb7f
commit
750ecb824a
36 files changed
+607
-289
No files matched your search
@@ -13,6 +13,9 @@ func init() {
|
||||
}
|
||||
|
||||
func TestServerPort(p int, m string) (b bool) {
|
||||
if p > 65535 || p <= 0 {
|
||||
return false
|
||||
}
|
||||
if len(ports) != 0 {
|
||||
if !common.InIntArr(ports, p) {
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user