4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-08-03 07:23:49 +00:00

Fix substitution

This commit is contained in:
Neil Alexander
2018-05-23 18:53:44 +01:00
parent 1fd53bcb7d
commit 8456b2e1bc

View File

@@ -160,8 +160,8 @@ func main() {
"AllowedBoxPubs": "AllowedEncryptionPublicKeys",
}
for from, to := range changes {
if val, ok := dat[from]; ok {
if val == "" {
if _, ok := dat[from]; ok {
if to == "" {
if !*normaliseconf {
log.Println("Warning: Deprecated config option", from, "- please remove")
}