diff --git a/cmd/dsnet.go b/cmd/dsnet.go index 9400fad..0941504 100644 --- a/cmd/dsnet.go +++ b/cmd/dsnet.go @@ -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 diff --git a/update.go b/sync.go similarity index 87% rename from update.go rename to sync.go index 8befbbe..18209a9 100644 --- a/update.go +++ b/sync.go @@ -1,6 +1,6 @@ package dsnet -func Update() { +func Sync() { // TODO check device settings first conf := MustLoadDsnetConfig() ConfigureDevice(conf)