feat: 删除 app_container ,修改安装逻辑
This commit is contained in:

committed by
zhengkunwang223

parent
12617f95dd
commit
c65afb7083
@@ -78,9 +78,9 @@ func RandStr(n int) string {
|
||||
return string(b)
|
||||
}
|
||||
|
||||
func ScanPort(port string) bool {
|
||||
func ScanPort(port int) bool {
|
||||
|
||||
ln, err := net.Listen("tcp", ":"+port)
|
||||
ln, err := net.Listen("tcp", ":"+strconv.Itoa(port))
|
||||
if err != nil {
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user