Browse Source

Merge pull request #1567 from Agraphie/master

Fix copy paste error
dcarns 2 years ago
parent
commit
6ea06f9bbb
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)
 				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 {