mirror of
https://github.com/sartoopjj/thefeed.git
synced 2026-05-19 05:04:35 +03:00
Enhance DNS resolver functionality and UI settings
- Refactor fetcher tests to improve coverage and add new tests for resolver scoring and query handling. - Update ResolverChecker to retry every minute until a healthy resolver is found and adjust timeout settings. - Introduce scatter parameter in the configuration to allow concurrent DNS requests, with UI adjustments for user input. - Modify metadata fetching logic to utilize cached data efficiently and ensure fresh data is fetched when necessary. - Implement server-side handling for fetch progress, including countdowns and UI updates during long fetch operations.
This commit is contained in:
@@ -17,6 +17,10 @@ func main() {
|
||||
port := flag.Int("port", 8080, "Web UI port")
|
||||
password := flag.String("password", "", "Admin password for web UI (empty = no auth)")
|
||||
showVersion := flag.Bool("version", false, "Show version and exit")
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintf(os.Stderr, "thefeed-client %s\n\nWeb UI for reading thefeed content over DNS.\n\nUsage:\n thefeed-client [flags]\n\nFlags:\n", version.Version)
|
||||
flag.PrintDefaults()
|
||||
}
|
||||
flag.Parse()
|
||||
|
||||
if *showVersion {
|
||||
|
||||
@@ -35,6 +35,10 @@ func main() {
|
||||
msgLimit := flag.Int("msg-limit", 15, "Maximum messages to fetch per Telegram channel")
|
||||
allowManage := flag.Bool("allow-manage", false, "Allow remote channel management and sending via DNS")
|
||||
showVersion := flag.Bool("version", false, "Show version and exit")
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintf(os.Stderr, "thefeed-server %s\n\nServes Telegram channel content over encrypted DNS for censorship-resistant access.\n\nUsage:\n thefeed-server [flags]\n\nFlags:\n", version.Version)
|
||||
flag.PrintDefaults()
|
||||
}
|
||||
flag.Parse()
|
||||
|
||||
if *showVersion {
|
||||
|
||||
Reference in New Issue
Block a user