new: add tunnel service

This commit is contained in:
Hiddify
2024-01-29 21:55:01 +01:00
parent 25d5b8a1c5
commit 5fa28220b4
28 changed files with 364 additions and 231 deletions

View File

@@ -1,16 +1,17 @@
package main
import (
"os"
"github.com/hiddify/libcore/utils"
"github.com/spf13/cobra"
"os"
)
var commandGenerateCertification = &cobra.Command{
Use: "gen-cert",
Short: "Generate certification for web server",
Run: func(cmd *cobra.Command, args []string) {
err := os.MkdirAll("cert", 600)
err := os.MkdirAll("cert", 0644)
if err != nil {
panic("Error: " + err.Error())
}