mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
Code optimization
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
var ports []int
|
||||
|
||||
func init() {
|
||||
func InitAllowPort() {
|
||||
p := beego.AppConfig.String("allow_ports")
|
||||
ports = common.GetPorts(p)
|
||||
}
|
||||
|
Reference in New Issue
Block a user