update -> sync (again, changed my mind)

This commit is contained in:
Callan Bryant 2020-03-04 22:12:31 +00:00
parent c04eeac00f
commit f8eeda36f9
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA
2 changed files with 5 additions and 5 deletions

View File

@ -25,8 +25,8 @@ func main() {
case "up": case "up":
dsnet.Up() dsnet.Up()
case "update": case "sync":
dsnet.Update() dsnet.Sync()
case "report": case "report":
@ -47,8 +47,8 @@ Available commands:
init : Create %s containing default configuration + new keys without loading. Edit to taste. init : Create %s containing default configuration + new keys without loading. Edit to taste.
add : Generate configuration for a new peer, adding to %s. Send with passworded ffsend. add : Generate configuration for a new peer, adding to %s. Send with passworded ffsend.
up : Create the interface, run pre/post up, update up : Create the interface, run pre/post up, sync
update : Update wireguard configuration with %s, adding/removing peers after validating matching config sync : Update wireguard configuration with %s, adding/removing peers after validating matching config
report : Generate a JSON status report to the location configured in %s. report : Generate a JSON status report to the location configured in %s.
down : Destroy the interface, run pre/post down down : Destroy the interface, run pre/post down

View File

@ -1,6 +1,6 @@
package dsnet package dsnet
func Update() { func Sync() {
// TODO check device settings first // TODO check device settings first
conf := MustLoadDsnetConfig() conf := MustLoadDsnetConfig()
ConfigureDevice(conf) ConfigureDevice(conf)