chore: made changes to build and fix issues

This commit is contained in:
David Allen 2025-06-01 14:41:06 -06:00
parent 9970e49d94
commit 0117f0355a
Signed by: towk
GPG key ID: 0430CDBE22619155
6 changed files with 91 additions and 44 deletions

View file

@ -37,23 +37,24 @@ const (
// CLI arguments as variables to not fiddle with error-prone strings
var (
currentUser *user.User
accessToken string
timeout int
concurrency int
ports []int
protocol string
cacertPath string
username string
password string
cachePath string
outputPath string
outputDir string
configPath string
verbose bool
debug bool
forceUpdate bool
insecure bool
currentUser *user.User
accessToken string
accessTokenPath string
timeout int
concurrency int
ports []int
protocol string
cacertPath string
username string
password string
cachePath string
outputPath string
outputDir string
configPath string
verbose bool
debug bool
forceUpdate bool
insecure bool
)
// The `root` command doesn't do anything on it's own except display
@ -137,7 +138,6 @@ func SetDefaults() {
viper.SetDefault("scan.subnet-masks", []net.IP{})
viper.SetDefault("scan.disable-probing", false)
viper.SetDefault("scan.disable-cache", false)
viper.SetDefault("collect.host", host)
viper.SetDefault("collect.username", "")
viper.SetDefault("collect.password", "")
viper.SetDefault("collect.protocol", "tcp")