fix: p2p and secret add bug

This commit is contained in:
刘河 2019-12-06 16:20:00 +08:00
parent c7e7d2bac6
commit 2dc902fba1

View File

@ -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
}