From 214002c56e0aeeae06750e0a4ffb629da303fe16 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 21 Feb 2024 16:04:05 +0300 Subject: [PATCH] add examples to config --- settings/config.toml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/settings/config.toml b/settings/config.toml index daa4251..eabc855 100644 --- a/settings/config.toml +++ b/settings/config.toml @@ -6,19 +6,29 @@ require_ipv4 = true provider = "IPIFYSource" [sources.wtf] provider = "WTFIsMyIP" + [sources.ifconfig] + provider = "GenericHttpSource" + url_v4 = "https://ifconfig.me/ip" + url_v6 = "https://ifconfig.me/ip" + [sources.ipconfig] + provider = "GenericHttpJsonSource" + url_v4 = "https://ipconfig.io/json" + url_v6 = "https://ipconfig.io/json" + key_v4 = "ip" + key_v6 = "ip" [sources.fake] provider = "FakeSource" delay = 10 - ipv6 = "fe80::1" + ipv4 = "127.0.0.1" [filters] [filters.state-file] provider = "StateFileFilter" filepath = "state/state.json" check_ipv4 = true - [filters.state-hash] - provider = "StateHashFilter" - filepath = "state/hash.txt" + #[filters.state-hash] + # provider = "StateHashFilter" + # filepath = "state/hash.txt" [outputs] [outputs.print] @@ -26,6 +36,6 @@ require_ipv4 = true [outputs.state-file] provider = "StateFile" filepath = "state/state.json" - [outputs.hash-file] - provider = "StateHashFile" - filepath = "state/hash.txt" + #[outputs.hash-file] + # provider = "StateHashFile" + # filepath = "state/hash.txt"