diff --git a/scripts/create_conf.py b/scripts/create_conf.py index 395155b..97ee0d8 100644 --- a/scripts/create_conf.py +++ b/scripts/create_conf.py @@ -31,7 +31,7 @@ def write_wg(config: Config): def get_config() -> Optional[Config]: with open("/snacks/wireguard/wg.json", "r", encoding="utf-8") as f: - config = Config.parse_raw(f.read()) + config = Config.model_validate_json(f.read()) config.host = socket.gethostbyname(config.host) return config