mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-15 21:00:27 +00:00
21 lines
332 B
Go
21 lines
332 B
Go
package main
|
|
|
|
import (
|
|
"github.com/sagernet/sing-box/common/netns"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var commandNetnsHolder = &cobra.Command{
|
|
Use: "netns-holder",
|
|
Args: cobra.NoArgs,
|
|
Hidden: true,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
netns.Hold()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
mainCommand.AddCommand(commandNetnsHolder)
|
|
}
|