Skip to content

Commit

Permalink
feat(ntpClient): Use valetudo.pool.ntp.org as the default timeserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Jan 27, 2024
1 parent cc2ecc3 commit 1a3a9f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion backend/lib/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ class Configuration {
Logger.info(`Migrating config from ${parsedConfig._version} to ${Tools.GET_VALETUDO_VERSION()}`);

// BEGIN migration code to be removed with the next version

if (parsedConfig.ntpClient.server === "pool.ntp.org") {
parsedConfig.ntpClient.server = "valetudo.pool.ntp.org";
}
// END migration code to be removed with the next version

parsedConfig._version = Tools.GET_VALETUDO_VERSION();
Expand Down
2 changes: 1 addition & 1 deletion backend/lib/res/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"ntpClient": {
"enabled": true,
"server": "pool.ntp.org",
"server": "valetudo.pool.ntp.org",
"port": 123,
"interval": 28800000,
"timeout": 10000
Expand Down

0 comments on commit 1a3a9f8

Please sign in to comment.