1 Star 6 Fork 0

klen / portmap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run.go 484 Bytes
一键复制 编辑 原始数据 按行查看 历史
klen 提交于 2023-05-21 15:44 . 修复udp只能单向通信
package client
import "github.com/spf13/cobra"
var (
confPath string
)
var RunCmd = &cobra.Command{
Use: "clirun",
GroupID: "exec",
Short: "执行主机端端口映射程序",
Run: func(cmd *cobra.Command, args []string) {
LoadConfigFromFile(confPath)
instance := NewInstance(config)
instance.Run()
},
Example: "portmap_linux_amd64 clirun -c config.yaml",
}
func init() {
RunCmd.Flags().StringVarP(&confPath, "conf", "c", "", "指定执行的配置文件")
}
Go
1
https://gitee.com/klen-ygs/portmap.git
git@gitee.com:klen-ygs/portmap.git
klen-ygs
portmap
portmap
v0.2.3

搜索帮助