fix: adapting docker compose bridge ip checker

This commit is contained in:
Zhang Minghan 2024-01-24 19:02:42 +08:00
parent d36d7e28d2
commit 518963aad1
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func ProjectZipDownloadAPI(c *gin.Context) {
func GenerateAPI(c *gin.Context) {
var conn *utils.WebSocket
if conn = utils.NewWebsocket(c, true); conn == nil {
if conn = utils.NewWebsocket(c, false); conn == nil {
return
}
defer conn.DeferClose()

View File

@ -30,7 +30,7 @@ func ProjectZipDownloadAPI(c *gin.Context) {
func GenerateAPI(c *gin.Context) {
var conn *utils.WebSocket
if conn = utils.NewWebsocket(c, true); conn == nil {
if conn = utils.NewWebsocket(c, false); conn == nil {
return
}
defer conn.DeferClose()