aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/config.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-11 21:19:16 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-11 21:19:16 +0200
commit98b4a72f1776d0343c0649920f031723e5ca0e47 (patch)
tree27714641861522dfe7901fb441e79e6778ff570d /pkg/config/config.go
parent7ff4cac4fc23060a56b9c33a3453c2d26629b699 (diff)
downloadcerrado-98b4a72f1776d0343c0649920f031723e5ca0e47.tar.gz
cerrado-98b4a72f1776d0343c0649920f031723e5ca0e47.tar.bz2
cerrado-98b4a72f1776d0343c0649920f031723e5ca0e47.zip
feat: Fix testingv0.0.2
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r--pkg/config/config.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 0e85b5a..6ac6d05 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -227,7 +227,7 @@ func defaultConfiguration() *configuration {
return &configuration{
Scan: defaultScan(),
RootReadme: "",
- ListenAddr: "http//0.0.0.0:8080",
+ ListenAddr: defaultAddr(),
Repositories: make([]*GitRepositoryConfiguration, 0),
}
}
@@ -237,7 +237,10 @@ func defaultScan() *scan {
Public: false,
Path: "",
}
+}
+func defaultAddr() string {
+ return "tcp://localhost:8080"
}
func defaultRepisotryConfiguration(path string) *GitRepositoryConfiguration {