mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 18:24:35 +03:00
only check the autotls hostnames once when serving
not twice: for root process and for child process
This commit is contained in:
@ -32,7 +32,7 @@ func FuzzServer(f *testing.F) {
|
||||
|
||||
mox.Context = context.Background()
|
||||
mox.ConfigStaticPath = "../testdata/smtp/mox.conf"
|
||||
mox.MustLoadConfig()
|
||||
mox.MustLoadConfig(false)
|
||||
dataDir := mox.ConfigDirPath(mox.Conf.Static.DataDir)
|
||||
os.RemoveAll(dataDir)
|
||||
acc, err := store.OpenAccount("mjl")
|
||||
|
@ -87,7 +87,7 @@ func newTestServer(t *testing.T, configPath string, resolver dns.Resolver) *test
|
||||
|
||||
mox.Context = context.Background()
|
||||
mox.ConfigStaticPath = configPath
|
||||
mox.MustLoadConfig()
|
||||
mox.MustLoadConfig(false)
|
||||
dataDir := mox.ConfigDirPath(mox.Conf.Static.DataDir)
|
||||
os.RemoveAll(dataDir)
|
||||
var err error
|
||||
|
Reference in New Issue
Block a user