mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Fix substitution
This commit is contained in:
parent
1fd53bcb7d
commit
8456b2e1bc
1 changed files with 4 additions and 4 deletions
|
@ -160,14 +160,14 @@ func main() {
|
||||||
"AllowedBoxPubs": "AllowedEncryptionPublicKeys",
|
"AllowedBoxPubs": "AllowedEncryptionPublicKeys",
|
||||||
}
|
}
|
||||||
for from, to := range changes {
|
for from, to := range changes {
|
||||||
if val, ok := dat[from]; ok {
|
if _, ok := dat[from]; ok {
|
||||||
if val == "" {
|
if to == "" {
|
||||||
if !*normaliseconf {
|
if !*normaliseconf {
|
||||||
log.Println("Warning: Deprecated config option", from, " - please remove")
|
log.Println("Warning: Deprecated config option", from, "- please remove")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !*normaliseconf {
|
if !*normaliseconf {
|
||||||
log.Println("Warning: Deprecated config option", from, " - please rename to", to)
|
log.Println("Warning: Deprecated config option", from, "- please rename to", to)
|
||||||
}
|
}
|
||||||
if _, ok := dat[to]; !ok {
|
if _, ok := dat[to]; !ok {
|
||||||
dat[to] = dat[from]
|
dat[to] = dat[from]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue