mirror of https://github.com/ehang-io/nps
fix: p2p and secret add bug
parent
c7e7d2bac6
commit
2dc902fba1
|
@ -31,6 +31,9 @@ func InitAllowPort() {
|
|||
}
|
||||
|
||||
func TestServerPort(p int, m string) (b bool) {
|
||||
if m == "p2p" || m == "secret" {
|
||||
return true
|
||||
}
|
||||
if p > 65535 || p < 0 {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue