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":
dsnet.Up()
case "update":
dsnet.Update()
case "sync":
dsnet.Sync()
case "report":
@ -47,8 +47,8 @@ Available commands:
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.
up : Create the interface, run pre/post up, update
update : Update wireguard configuration with %s, adding/removing peers after validating matching config
up : Create the interface, run pre/post up, sync
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.
down : Destroy the interface, run pre/post down

View File

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