Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53c74553bc | ||
|
|
3eb9cade0e |
@@ -1,7 +1,7 @@
|
|||||||
package teaconst
|
package teaconst
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "0.3.5"
|
Version = "0.3.5.2"
|
||||||
|
|
||||||
ProductName = "Edge Node"
|
ProductName = "Edge Node"
|
||||||
ProcessName = "edge-node"
|
ProcessName = "edge-node"
|
||||||
|
|||||||
@@ -297,10 +297,12 @@ func (this *IPSetAction) runActionSingleIP(action string, listType IPListType, i
|
|||||||
case "deleteItem":
|
case "deleteItem":
|
||||||
args = append(args, "del")
|
args = append(args, "del")
|
||||||
}
|
}
|
||||||
args = append(args, listName, item.IpFrom)
|
if action == "addItem" {
|
||||||
timestamp := time.Now().Unix()
|
args = append(args, listName, item.IpFrom)
|
||||||
if item.ExpiredAt > timestamp {
|
timestamp := time.Now().Unix()
|
||||||
args = append(args, "timeout", strconv.FormatInt(item.ExpiredAt-timestamp, 10))
|
if item.ExpiredAt > timestamp {
|
||||||
|
args = append(args, "timeout", strconv.FormatInt(item.ExpiredAt-timestamp, 10))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
|
|||||||
Reference in New Issue
Block a user