mirror of
https://github.com/ehang-io/nps.git
synced 2025-08-31 17:56:56 +00:00
fix: p2p and secret add bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user