From 98b4a72f1776d0343c0649920f031723e5ca0e47 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Tue, 11 Jun 2024 21:19:16 +0200 Subject: feat: Fix testing --- pkg/config/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/config/config.go') 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 { -- cgit v1.2.3