WIP
This commit is contained in:
21
cmds/portmaster-core/main_linux.go
Normal file
21
cmds/portmaster-core/main_linux.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/safing/portmaster/cmds/cmdbase"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var recoverIPTablesFlag bool
|
||||
|
||||
func init() {
|
||||
rootCmd.Flags().BoolVar(&recoverIPTablesFlag, "recover-iptables", false, "recovers ip table rules (backward compatibility; use command instead)")
|
||||
}
|
||||
|
||||
func runPlatformSpecifics(cmd *cobra.Command, args []string) {
|
||||
switch {
|
||||
case printVersion:
|
||||
runFlagCmd(cmdbase.Version, cmd, args)
|
||||
case recoverIPTablesFlag:
|
||||
runFlagCmd(recoverIPTables, cmd, args)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user