mirror of
https://github.com/go-i2p/go-gitlooseleaf.git
synced 2025-06-17 06:35:36 -04:00
Fix metalistener setup
This commit is contained in:
@ -7,9 +7,11 @@ import (
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/go-i2p/go-meta-listener/mirror"
|
||||
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
limitedlistener "github.com/go-i2p/go-limit"
|
||||
)
|
||||
|
||||
@ -55,7 +57,9 @@ func MultiGetListener(network, address string) (net.Listener, error) {
|
||||
return GetListenerUnixWrapper(network, unixAddr)
|
||||
|
||||
default:
|
||||
ml, err := mirrorListener.Listen(address, EMAIL, "./certs", true)
|
||||
ml, err := mirrorListener.Listen(address, EMAIL)
|
||||
mirror.CERT_DIR = filepath.Join(setting.CustomPath, "certs")
|
||||
mirror.HIDDEN_TLS = true
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user