Skip to content

Error when fetching IP-blocklists and Telegram config, while manual download works #340

@arabesc

Description

@arabesc

When running mtg, I see numerous warning messages in the logs indicating failures to update IP-blocklists and Telegram public configurations. The error reported is Get "URL": EOF.
Crucially, I can download these exact URLs manually from the same host using curl, wget and fetch without any issues.

Log Output:

{"level":"warn","filename":"https://iplists.firehol.org/files/blocklist_de_apache.ipset","logger":"blocklist.ipblockist.firehol","error":"cannot get url https://iplists.firehol.org/files/blocklist_de_apache.ipset: Get \"https://iplists.firehol.org/files/blocklist_de_apache.ipset\": EOF","timestamp":1771983825836,"message":"update has failed"}
{"level":"warn","logger":"proxy.telegram-updaters.public-config","error":"cannot fetch url https://core.telegram.org/getProxyConfigV6: Get \"https://core.telegram.org/getProxyConfigV6\": EOF","timestamp":1771983826516,"message":"cannot update: %w"}

Note: many more similar errors for firehol.org and core.telegram.org occur.

Manual Verification

I have verified that the URLs are accessible from the command line:

  • curl -O https://iplists.firehol.org/files/blocklist_de_apache.ipset -> 200 OK
  • wget https://core.telegram.org/getProxyConfigV6 -> Success

Additional Observations & Inconsistencies

IPv6 config fetch despite only-ipv4

  • I have prefer-ip = "only-ipv4" set in my configuration. Despite this, mtg still attempts to fetch the IPv6 configuration from Telegram:
    https://core.telegram.org/getProxyConfigV6
  • It seems unexpected for the application to try and update IPv6 configs when it's explicitly restricted to IPv4.

allowlist.ipblocklist.firehol activity

  • The logs show activity from allowlist.ipblocklist.firehol (including an initial "info" message about a successful update), even though I haven't configured any Firehol-related allowlists:
{"level":"info","logger":"allowlist.ipblocklist.firehol","timestamp":1771983825666,"message":"ip list was updated"}
  • Is this enabled by default, and if so, can it be disabled via config?

Environment:

  • mtg version: 2.1.11
  • OS: FreeBSD 14.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions