去除提示
This commit is contained in:
parent
18ab5ae4ef
commit
ed4deb847e
3
main.go
3
main.go
@ -267,7 +267,6 @@ func handleCmd() {
|
|||||||
if instruction != "" {
|
if instruction != "" {
|
||||||
switch instruction {
|
switch instruction {
|
||||||
case "start":
|
case "start":
|
||||||
fmt.Println("启动 Iptables 规则")
|
|
||||||
for i := 0; i < MAX_IPSET_NAME; i++ {
|
for i := 0; i < MAX_IPSET_NAME; i++ {
|
||||||
_name := fmt.Sprintf("root%d", i)
|
_name := fmt.Sprintf("root%d", i)
|
||||||
iptables_add(_name)
|
iptables_add(_name)
|
||||||
@ -275,7 +274,6 @@ func handleCmd() {
|
|||||||
|
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
case "stop":
|
case "stop":
|
||||||
fmt.Println("停止 Iptables 规则")
|
|
||||||
for i := 0; i < MAX_IPSET_NAME; i++ {
|
for i := 0; i < MAX_IPSET_NAME; i++ {
|
||||||
_name := fmt.Sprintf("root%d", i)
|
_name := fmt.Sprintf("root%d", i)
|
||||||
iptables_del(_name)
|
iptables_del(_name)
|
||||||
@ -284,7 +282,6 @@ func handleCmd() {
|
|||||||
case "l":
|
case "l":
|
||||||
fallthrough
|
fallthrough
|
||||||
case "list":
|
case "list":
|
||||||
fmt.Println("打印 Iptables 规则")
|
|
||||||
_ = iptables_list()
|
_ = iptables_list()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user