mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
26 lines
383 B
Go
26 lines
383 B
Go
//go:build !nocli
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/e1732a364fed/v2ray_simple/netLayer/tproxy"
|
|
)
|
|
|
|
func init() {
|
|
|
|
cliCmdList = append(cliCmdList, &CliCmd{
|
|
"为tproxy设置iptables(12345端口)", func() {
|
|
|
|
tproxy.SetIPTablesByDefault()
|
|
|
|
},
|
|
})
|
|
cliCmdList = append(cliCmdList, &CliCmd{
|
|
"为tproxy移除iptables", func() {
|
|
|
|
tproxy.CleanupIPTablesByDefault()
|
|
|
|
},
|
|
})
|
|
}
|