dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 9ff2cd39d686a309bed4102ad35e30ae1c62d7d0
parent 8ab11ea53ec5d48c280908f56f445e9a70d5621f
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 11 Jan 2023 15:26:05 -0800

cleanup

Diffstat:
Mpkg/web/web.go | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pkg/web/web.go b/pkg/web/web.go @@ -296,11 +296,7 @@ func startI2pServer(host string, port int) { address := host + ":" + strconv.Itoa(port) e := getBaseServer() logrus.Info("start i2p server on " + address) - if err := e.Start(address); err != nil { - if err != http.ErrServerClosed { - logrus.Error(err) - } - } + startServer(e, address) } func startTorServer(host string, port int) { @@ -308,6 +304,10 @@ func startTorServer(host string, port int) { e := getBaseServer() configTorProdServer(e) logrus.Info("start tor server on " + address) + startServer(e, address) +} + +func startServer(e *echo.Echo, address string) { if err := e.Start(address); err != nil { if err != http.ErrServerClosed { logrus.Error(err)