Skip to content

Commit

Permalink
docs(geodata): impl details of geoUpdateInterval en translation
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed Mar 30, 2024
1 parent 80a9c64 commit 8fe545c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/docs/advanced/Full-Server-Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ You can have either `file` or `inline`, but not both.
1. The path to the ACL file.
2. Optional. Uncomment to enable. The path to the GeoIP database file. **If this field is omitted, Hysteria will automatically download the latest database to your working directory.**
3. Optional. Uncomment to enable. The path to the GeoSite database file. **If this field is omitted, Hysteria will automatically download the latest database to your working directory.**
4. Optional. The interval at which to refresh the GeoIP/GeoSite databases. 168 hours (1 week) by default. Only applies if the GeoIP/GeoSite databases are automatically downloaded.
4. Optional. The interval at which to refresh the GeoIP/GeoSite databases. 168 hours (1 week) by default. Only applies if the GeoIP/GeoSite databases are automatically downloaded. (Check the note below for more information.)

=== "Inline"

Expand All @@ -314,10 +314,12 @@ You can have either `file` or `inline`, but not both.
1. The list of inline ACL rules.
2. Optional. Uncomment to enable. The path to the GeoIP database file. **If this field is omitted, Hysteria will automatically download the latest database to your working directory.**
3. Optional. Uncomment to enable. The path to the GeoSite database file. **If this field is omitted, Hysteria will automatically download the latest database to your working directory.**
4. Optional. The interval at which to refresh the GeoIP/GeoSite databases. 168 hours (1 week) by default. Only applies if the GeoIP/GeoSite databases are automatically downloaded.
4. Optional. The interval at which to refresh the GeoIP/GeoSite databases. 168 hours (1 week) by default. Only applies if the GeoIP/GeoSite databases are automatically downloaded. (Check the note below for more information.)

> **NOTE:** Hysteria currently uses the protobuf-based "dat" format for geoip/geosite data originating from v2ray. If you don't need any customization, you can omit the `geoip` or `geosite` fields and let Hysteria automatically download the latest version (from <https://github.com/Loyalsoldier/v2ray-rules-dat>) to your working directory. The files will only be downloaded and used if your ACL has at least one rule that uses this feature.

> **NOTE:** Hysteria currently only downloads the GeoIP/GeoSite databases once at startup. You will need to use external tools to periodically restart the Hysteria server in order to update the databases regularly through `geoUpdateInterval`. This may change in future versions.

## Outbounds

Outbounds are used to define the "exit" through which a connection should be routed. For example, when [combined with ACL](ACL.md), you can route all traffic except Netflix directly through the local interface, while routing Netflix traffic through a SOCKS5 proxy.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/advanced/Full-Server-Config.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ ACL 是 Hysteria 服务端中一个非常强大的功能,可以用来自定义
1. ACL 文件的路径。
2. 可选。取消注释以启用。GeoIP 数据库文件的路径。**如果省略这个字段,Hysteria 会自动下载最新的数据库到工作目录。**
3. 可选。取消注释以启用。GeoSite 数据库文件的路径。**如果省略这个字段,Hysteria 会自动下载最新的数据库到工作目录。**
4. 可选。GeoIP/GeoSite 数据库刷新的间隔。默认为 168 小时(1 周)。仅在 GeoIP/GeoSite 数据库是自动下载的情况下生效。
4. 可选。GeoIP/GeoSite 数据库刷新的间隔。默认为 168 小时(1 周)。仅在 GeoIP/GeoSite 数据库是自动下载的情况下生效。(另请参阅下方注意事项)

=== "内联"

Expand Down

0 comments on commit 8fe545c

Please sign in to comment.