added back FRPDocker

This commit is contained in:
2023-01-21 03:53:43 +00:00
parent 67199a35ba
commit b8820ff150
2 changed files with 8 additions and 9 deletions

View File

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