update -> sync (again, changed my mind)
This commit is contained in:
parent
c04eeac00f
commit
f8eeda36f9
@ -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
|
||||||
|
|
||||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user