aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-08-17 14:02:00 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-08-17 14:02:00 +0200
commit05f2587bdff32e5d2f8c19d290654beb47be2db5 (patch)
tree39b39e363734fbe48b8e2cde4fcbfd7956306679
parenta3c86acc054af11a070206b541b00090d7991661 (diff)
change config location from /etc to /data
-rw-r--r--README.md2
-rw-r--r--src/main.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 14c49ae..5729b51 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ It only works if you're using INWX's own nameservers for your zone.
dyndns [config]
```
-where config is the config path (defaults to /etc/dyndns.conf).
+where config is the config path (defaults to /data/dyndns.conf).
# Configuration
diff --git a/src/main.rs b/src/main.rs
index 938f851..be87630 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -146,10 +146,10 @@ struct ConfigNet6 {
fn main() -> Result<()> {
// Get the config path from the first command-line argument
- // or fall back to the default /etc/dyndns.conf.
+ // or fall back to the default /data/dyndns.conf.
let config_path = env::args()
.nth(1)
- .unwrap_or_else(|| String::from("/etc/dyndns.conf"));
+ .unwrap_or_else(|| String::from("/data/dyndns.conf"));
let mut config_file = File::open(config_path.as_str())?;