Skip to content

Commit

Permalink
Remove extra slash from ScannerBackendAddress default
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehsmash authored and Sam Betts committed Jan 20, 2023
1 parent c1a02f5 commit 54d3d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime_scan/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func setConfigDefaults(backendAddress string, backendPort int, backendBaseURL st
viper.SetDefault(JobResultTimeout, "120m")
viper.SetDefault(JobResultsPollingInterval, "30s")
viper.SetDefault(DeleteJobPolicy, DeleteJobPolicySuccessful)
viper.SetDefault(ScannerBackendAddress, fmt.Sprintf("http://%s/%s", net.JoinHostPort(backendAddress, strconv.Itoa(backendPort)), backendBaseURL))
viper.SetDefault(ScannerBackendAddress, fmt.Sprintf("http://%s%s", net.JoinHostPort(backendAddress, strconv.Itoa(backendPort)), backendBaseURL))

viper.AutomaticEnv()
}
Expand Down

0 comments on commit 54d3d18

Please sign in to comment.