mirror of
https://github.com/coaidev/coai.git
synced 2025-05-29 01:40:17 +09:00
fix: adapting docker compose bridge ip checker
This commit is contained in:
parent
d36d7e28d2
commit
518963aad1
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user