update -> sync (again, changed my mind)
This commit is contained in:
parent
c04eeac00f
commit
f8eeda36f9
@ -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
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package dsnet
|
||||
|
||||
func Update() {
|
||||
func Sync() {
|
||||
// TODO check device settings first
|
||||
conf := MustLoadDsnetConfig()
|
||||
ConfigureDevice(conf)
|
Loading…
Reference in New Issue
Block a user