fix: Fixes more instability issues. :)
This commit is contained in:
parent
1e1a330a4b
commit
f8d32fb1c6
8 changed files with 132 additions and 27 deletions
|
@ -128,6 +128,8 @@ func GetConnections(c *gin.Context) {
|
|||
c.JSON(http.StatusInternalServerError, gin.H{
|
||||
"error": "Failed to get status response from backend",
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
switch responseMessage := backendResponse.(type) {
|
||||
|
|
|
@ -123,6 +123,8 @@ func CreateProxy(c *gin.Context) {
|
|||
c.JSON(http.StatusInternalServerError, gin.H{
|
||||
"error": "Failed to add forward rule to database",
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if autoStart {
|
||||
|
|
|
@ -95,6 +95,8 @@ func LookupProxy(c *gin.Context) {
|
|||
c.JSON(http.StatusBadRequest, gin.H{
|
||||
"error": "Protocol specified in body must either be 'tcp' or 'udp'",
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue