mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add search without auth
This commit is contained in:
@@ -35,6 +35,7 @@ type args struct {
|
||||
TorrentAddr string `help:"Torrent client address, default :32000"`
|
||||
PubIPv4 string `arg:"-4" help:"set public IPv4 addr"`
|
||||
PubIPv6 string `arg:"-6" help:"set public IPv6 addr"`
|
||||
SearchWA bool `arg:"-swa" help:"search without auth"`
|
||||
}
|
||||
|
||||
func (args) Version() string {
|
||||
@@ -91,7 +92,7 @@ func main() {
|
||||
go watchTDir(params.TorrentsDir)
|
||||
}
|
||||
|
||||
server.Start(params.Port, params.RDB)
|
||||
server.Start(params.Port, params.RDB, params.SearchWA)
|
||||
log.TLogln(server.WaitServer())
|
||||
log.Close()
|
||||
time.Sleep(time.Second * 3)
|
||||
|
||||
Reference in New Issue
Block a user