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