testing docker again for lol

This commit is contained in:
2023-01-21 03:59:23 +00:00
parent 6f4fdf1a8e
commit 15df4f45d5

View File

@@ -117,10 +117,11 @@ func Server() error {
} }
if ProxyIpAddr.Ipv4 != "" { if ProxyIpAddr.Ipv4 != "" {
resp, err = frp.StartFRPCDockerContainer(ProxyIpAddr.Ipv4, ProxyIpAddr.ProxyPort, resp) respFrpDocker, err := frp.StartFRPCDockerContainer(ProxyIpAddr.Ipv4, ProxyIpAddr.ProxyPort, resp)
if err != nil { if err != nil {
c.String(http.StatusInternalServerError, fmt.Sprintf("error: %s", err)) c.String(http.StatusInternalServerError, fmt.Sprintf("error: %s", err))
} }
c.JSON(http.StatusOK, respFrpDocker)
} }
c.JSON(http.StatusOK, resp) c.JSON(http.StatusOK, resp)