yggdrasil-network / yggdrasil-go

An experiment in scalable routing as an encrypted IPv6 overlay network

Home Page:https://yggdrasil-network.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

normaliseconf flag removes existing values

tbitcomb opened this issue · comments

The behavior of -normaliseconf seems to have changed between v4 and v5.

I used to be able to have a generic config that I could then use that argument on to generate a key for while leaving everything in tact:

cat yggdrasil.conf | yggdrasil -useconf -normaliseconf > yggdrasil.conf

For instance, if I have a sort of "template" config with peers and node info set up, but without a private key, the above used to add the key but leave the rest alone.

After I upgraded to 0.5.5, it now adds the key but erases my defaults, replacing them with empty lists and such. This is true even with a config that was initially generated by v0.5.5.

EDIT: This might specifically involve the version available for Alpine Linux, as this does not seem to be a problem on macOS.

commented

Does this happen if you do yggdrasil -useconffile yggdrasil.conf -normaliseconf > yggdrasil.conf instead?