This commit is contained in:
naiba
2021-04-23 19:09:04 +08:00
parent c955e21d5b
commit 7aa3249314
5 changed files with 10 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ import (
"fmt"
"net/http"
"strconv"
"strings"
"time"
"github.com/gin-gonic/gin"
@@ -205,7 +206,7 @@ func (ma *memberAPI) addOrEditMonitor(c *gin.Context) {
err := c.ShouldBindJSON(&mf)
if err == nil {
m.Name = mf.Name
m.Target = mf.Target
m.Target = strings.TrimSpace(mf.Target)
m.Type = mf.Type
m.ID = mf.ID
m.SkipServersRaw = mf.SkipServersRaw