Browse Source

Fix copy paste error

The PostDown section wasn't set anymore in certain cases.
agraphie 2 years ago
parent
commit
56a96e8bc2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netclient/wireguard/common.go

+ 1 - 1
netclient/wireguard/common.go

@@ -359,7 +359,7 @@ func WriteWgConfig(node *models.Node, privateKey string, peers []wgtypes.PeerCon
 				wireguard.Section(section_interface).Key("PostDown").AddShadow(part)
 			}
 		} else {
-			wireguard.Section(section_interface).Key("PostUp").SetValue((node.PostUp))
+			wireguard.Section(section_interface).Key("PostDown").SetValue((node.PostDown))
 		}
 	}
 	if node.MTU != 0 {