add search without auth

This commit is contained in:
YouROK
2023-03-09 22:43:32 +03:00
parent 97ba2e573f
commit 78de9c543b
4 changed files with 9 additions and 5 deletions

View File

@@ -13,13 +13,15 @@ var (
Port string
ReadOnly bool
HttpAuth bool
SearchWA bool
PubIPv4 string
PubIPv6 string
TorAddr string
)
func InitSets(readOnly bool) {
func InitSets(readOnly, searchWA bool) {
ReadOnly = readOnly
SearchWA = searchWA
tdb = NewTDB()
if tdb == nil {
log.TLogln("Error open db:", filepath.Join(Path, "config.db"))