2
0
Эх сурвалжийг харах

Fix copy paste error

The PostDown section wasn't set anymore in certain cases.
agraphie 3 жил өмнө
parent
commit
56a96e8bc2

+ 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)
 				wireguard.Section(section_interface).Key("PostDown").AddShadow(part)
 			}
 			}
 		} else {
 		} else {
-			wireguard.Section(section_interface).Key("PostUp").SetValue((node.PostUp))
+			wireguard.Section(section_interface).Key("PostDown").SetValue((node.PostDown))
 		}
 		}
 	}
 	}
 	if node.MTU != 0 {
 	if node.MTU != 0 {