fix: p2p and secret add bug

pull/298/head
刘河 2019-12-06 16:20:00 +08:00
parent c7e7d2bac6
commit 2dc902fba1
1 changed files with 3 additions and 0 deletions

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
}