2023-03-24 23:19:17 +08:00
|
|
|
package client
|
|
|
|
|
|
|
|
type FireInfo struct {
|
2023-03-27 19:02:36 +08:00
|
|
|
Family string `json:"family"` // ipv4 ipv6
|
|
|
|
Address string `json:"address"` // Anywhere
|
|
|
|
Port string `json:"port"`
|
2023-03-27 23:29:46 +08:00
|
|
|
Protocol string `json:"protocol"` // tcp udp tcp/udp
|
2023-03-27 19:02:36 +08:00
|
|
|
Strategy string `json:"strategy"` // accept drop
|
2023-04-01 00:51:25 +08:00
|
|
|
|
|
|
|
APPName string `json:"appName"`
|
|
|
|
IsUsed bool `json:"isUsed"`
|
2023-03-24 23:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type Forward struct {
|
2023-03-27 19:02:36 +08:00
|
|
|
Protocol string `json:"protocol"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
Port string `json:"port"`
|
|
|
|
Target string `json:"target"`
|
2023-03-24 23:19:17 +08:00
|
|
|
}
|