mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 13:10:42 +00:00
fix: p2p and secret add bug
This commit is contained in:
parent
c7e7d2bac6
commit
2dc902fba1
@ -31,6 +31,9 @@ func InitAllowPort() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestServerPort(p int, m string) (b bool) {
|
func TestServerPort(p int, m string) (b bool) {
|
||||||
|
if m == "p2p" || m == "secret" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
if p > 65535 || p < 0 {
|
if p > 65535 || p < 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user