Closed pherjung closed 2 years ago
Hi! Thanks for the report.
It doesn't look like the values are the problem, nothing weird there. It may be a problem with the structure of the file or the keys, since the parser is currently a bit strict with that (I'm repurposing Python's configparser, which is not an exact match for this config file). The big limitation is that only a single "Peer" can be provided, but it may also have problems with missing values or different casing than expected.
Could you share your config file as well? Of course, please redact any values first!
Thank you for your work and your answer!
Here is it:
[Interface]
PrivateKey = PRIVATE_KEY
Address = 10.10.0.4/8
DNS = 10.43.0.10
ListenPort = LISTEN_PORT
[Peer]
PublicKey = PUBLIC_KEY
Endpoint = ENDPOINT:LISTEN_PORT
AllowedIPS = 10.0.0.0/8
Ok, so the problem was that my code assumed that all config file would have a PersistentKeepalive
configure :facepalm:
It should be fixed in 0.2 (just released), which also includes some improvements to error reporting, so hopefully it will report errors instead of crashing.
Let me know if this works for you if you get the chance.
Well it happens. Most important is that the fix is easy to apply and indeed it works as expected. Thank you!
On my X10 II on 4.4.0.72, I get an error if I import a wg.conf but it works if I insert manually all datas.
Edite: Here are the "problematic" values: