load key from file

This commit is contained in:
ljw
2024-11-01 14:56:11 +08:00
parent c4b45a51d5
commit c5e3482538
3 changed files with 24 additions and 1 deletions
+1
View File
@@ -63,6 +63,7 @@ func Init(rowVal interface{}) *viper.Viper {
if err := v.Unmarshal(rowVal); err != nil {
fmt.Println(err)
}
LoadKeyFile(&rowVal.(*Config).Rustdesk)
return v
}