diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/bitmask/init.go | 8 | ||||
-rw-r--r-- | pkg/config/config.go | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/pkg/bitmask/init.go b/pkg/bitmask/init.go index 4907b2f..bed98e5 100644 --- a/pkg/bitmask/init.go +++ b/pkg/bitmask/init.go @@ -40,6 +40,7 @@ type ProviderOpts struct { AppName string `json:"applicationName"` BinaryName string `json:"binaryName"` Auth string `json:"auth"` + AuthEmptyPass string `json:"authEmptyPass"` ProviderURL string `json:"providerURL"` DonateURL string `json:"donateURL"` ApiURL string `json:"apiURL"` @@ -62,6 +63,7 @@ func ConfigureProvider(opts *ProviderOpts) { config.ApplicationName = opts.AppName config.BinaryName = opts.BinaryName config.Auth = opts.Auth + config.DonateURL = opts.DonateURL config.HelpURL = opts.HelpURL config.TosURL = opts.TosURL @@ -73,6 +75,12 @@ func ConfigureProvider(opts *ProviderOpts) { if err == nil { config.AskForDonations = wantsDonations } + + emptyPass, err := strconv.ParseBool(opts.AuthEmptyPass) + if err == nil { + config.AuthEmptyPass = emptyPass + log.Println("DEBUG: provider allows empty pass", emptyPass) + } } func InitializeLogger() { diff --git a/pkg/config/config.go b/pkg/config/config.go index 7815c96..c4961ab 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -6,6 +6,7 @@ var ( ApplicationName = "" BinaryName = "" Auth = "" + AuthEmptyPass = false DonateURL = "" AskForDonations = true HelpURL = "" |