hiddify / hiddify-next

Multi-platform auto-proxy client, supporting Sing-box, X-ray, TUIC, Hysteria, Reality, Trojan, SSH etc. It’s an open-source, secure and ad-free.
https://hiddify.com
Other
15.39k stars 1.42k forks source link

From 1.5.0 to 1.6.0.dev, I can't find the function to update geoip.db and geosite.db. #1051

Closed ghkghkghk closed 5 hours ago

ghkghkghk commented 1 month ago

Search first

What Happened?

image

As the title says, how do I update geoip.db and geosite.db in the latest version (1.6.0 dev)?

Minimal Reproducible Example (MRE)

image

Expected Behavior

No response

Version

1.6.2 dev

Platform/OS

Windows

Additional Context

No response

Application Config Options

No response

Relevant log output

No response

Are you willing to submit a PR? If you know how to fix the bug.

ChapayTv commented 1 month ago

I am also interested in this question. At the moment, all the sites that I visit are proxied. How to solve the problem?

papampi commented 1 month ago

It uses new sing-box rules and auto updates them, no need to worry about them anymore. I think every 120 hours or at each start.

ghkghkghk commented 1 month ago

It uses new sing-box rules and auto updates them, no need to worry about them anymore. I think every 120 hours or at each start. image

As you described, these two "db" files will be updated by sing-box every 120 hours. Is this correct?

ChapayTv commented 1 month ago

It uses new sing-box rules and auto updates them, no need to worry about them anymore. I think every 120 hours or at each start.

This obviously doesn't work because now all my sites open from the IP server. domains . ru are not filtered!

papampi commented 1 month ago

As you described, these two "db" files will be updated by sing-box every 120 hours. Is this correct?

Nope, it reads directly from urls , you can check the urls it is using by openning the current-config.json file. It has some urls to the .srs files like this:

    "rule_set": [
      {
        "type": "remote",
        "tag": "geoip-ru",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/country/geoip-ru.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-ru",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/country/geosite-ru.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-ads",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/block/geosite-category-ads-all.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-malware",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/block/geosite-malware.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-phishing",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/block/geosite-phishing.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-cryptominers",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/block/geosite-cryptominers.srs",
        "update_interval": "120h0m0s"
      },
...

The first two rules will be added by the region you select, And the rest will be added if you turn on block advertisement

ghkghkghk commented 1 month ago

As you described, these two "db" files will be updated by sing-box every 120 hours. Is this correct?

Nope, it reads directly from urls , you can check the urls it is using by openning the current-config.json file. It has some urls to the .srs files like this:

    "rule_set": [
      {
        "type": "remote",
        "tag": "geoip-ru",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/country/geoip-ru.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-ru",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/country/geosite-ru.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-ads",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/block/geosite-category-ads-all.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-malware",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/block/geosite-malware.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-phishing",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/block/geosite-phishing.srs",
        "update_interval": "120h0m0s"
      },
      {
        "type": "remote",
        "tag": "geosite-cryptominers",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/block/geosite-cryptominers.srs",
        "update_interval": "120h0m0s"
      },
...

The first two rules will be added by the region you select, And the rest will be added if you turn on block advertisement

So, manually deleting the two "db" files in the working directory will have no effect, right? image

I would also like to ask, the size of this online "srs" file is very small, can it replace the function of the original db format file? image

papampi commented 1 month ago

So, manually deleting the two "db" files in the working directory will have no effect, right?

You can clearout content of geo-assets folder with no problem in 1.6.x

I would also like to ask, the size of this online "srs" file is very small, can it replace the function of the original db format file?

Usually so small, that's why sing-box changed it ruling format so it doesn't need to load a 10 MB .db file for 100 KB .db rules. You can download the .srs files and check their size. For example geoip-ru.srs is about 65 KB

ChapayTv commented 1 month ago

What should I do on Android?

papampi commented 1 month ago

What should I do on Android?

Nothing ... just use it ... If you dont want old .db files, you can clear out its data ... but not needed on any of them. New hiddify uses the new sing-box rules

ChapayTv commented 1 month ago

What should I do on Android?

Nothing ... just use it ... If you dont want old .db files, you can clear out its data ... but not needed on any of them. New hiddify uses the new sing-box rules So I used to have all .ru domains opened directly, but now with some kind of fig through a proxy. How do I do this?

ChapayTv commented 1 month ago

What should I do on Android?

Nothing ... just use it ... If you dont want old .db files, you can clear out its data ... but not needed on any of them. New hiddify uses the new sing-box rules

My routes are not filtered .ru

papampi commented 1 month ago

No idea ... Have you set correct region? Maybe uninstall /install ... see how it goes. Or wait for stable release.

ChapayTv commented 1 month ago

No idea ... Have you set correct region? Maybe uninstall /install ... see how it goes. Or wait for stable release.

I have a stable version, I deleted and reinstalled the program. It's no use.

ChapayTv commented 1 month ago

There are no .ru contortions on any site.