Work on supporting and using certificates.

This commit is contained in:
Storm Dragon
2025-12-12 18:34:23 -05:00
parent 331055ab18
commit 0700264afe
3 changed files with 112 additions and 3 deletions
+6
View File
@@ -127,12 +127,15 @@ func main() {
userConfig := config.NewConfig(cfgfn)
certificateSet := false
flag.CommandLine.Visit(func(theFlag *flag.Flag) {
switch theFlag.Name {
case "server":
serverSet = true
case "username":
usernameSet = true
case "certificate":
certificateSet = true
}
})
@@ -142,6 +145,9 @@ func main() {
if !usernameSet {
username = userConfig.GetUsername()
}
if !certificateSet {
certificate = userConfig.GetCertificate()
}
if os.Getenv("ALSOFT_LOGLEVEL") == "" {
os.Setenv("ALSOFT_LOGLEVEL", "0")