add socket

This commit is contained in:
w1ndyb0y
2020-12-21 17:58:30 +08:00
parent 5fb48afd7b
commit 540e682c0b
3 changed files with 53 additions and 0 deletions
+3
View File
@@ -33,6 +33,8 @@ var (
dbFile string
dbInit bool
socketAddress string
// rootCmd represents the base command when called without any subcommands
rootCmd = &cobra.Command{
Use: "tele-recv",
@@ -96,5 +98,6 @@ func initConfig() {
lograw = viper.GetBool("serial.lograw")
dbFile = viper.GetString("sqlite.file")
dbInit = viper.GetBool("sqlite.init")
socketAddress = viper.GetString("socket.address")
}
}