Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
97e6e80d5a | |||
0d28bd3445 |
@@ -373,7 +373,7 @@ func (clients) Status(c *gin.Context) {
|
|||||||
ipAllocation += iaip.String() + ","
|
ipAllocation += iaip.String() + ","
|
||||||
}
|
}
|
||||||
ipAllocation = strings.TrimRight(ipAllocation, ",")
|
ipAllocation = strings.TrimRight(ipAllocation, ",")
|
||||||
isOnline := time.Since(p.LastHandshakeTime).Minutes() < 1
|
isOnline := time.Since(p.LastHandshakeTime).Minutes() < 3
|
||||||
data = append(data, vo.ClientStatus{
|
data = append(data, vo.ClientStatus{
|
||||||
ID: clientInfo.Id,
|
ID: clientInfo.Id,
|
||||||
Name: clientInfo.Name,
|
Name: clientInfo.Name,
|
||||||
|
@@ -59,6 +59,8 @@ func (r server) Update(p param.SaveServer) (err error) {
|
|||||||
"post_up_script": p.PostUpScript,
|
"post_up_script": p.PostUpScript,
|
||||||
"pre_down_script": p.PreDownScript,
|
"pre_down_script": p.PreDownScript,
|
||||||
"post_down_script": p.PostDownScript,
|
"post_down_script": p.PostDownScript,
|
||||||
|
"private_key": p.PrivateKey,
|
||||||
|
"public_key": p.PublicKey,
|
||||||
}
|
}
|
||||||
return r.Model(&entity.Server{}).Where("id = ?", p.Id).Updates(&update).Error
|
return r.Model(&entity.Server{}).Where("id = ?", p.Id).Updates(&update).Error
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user