add remove server from networks with api. Add to default network by default.

This commit is contained in:
afeiszli
2021-04-06 19:13:34 -04:00
parent 5b955f2201
commit f3f2140f23
8 changed files with 230 additions and 64 deletions

View File

@@ -29,7 +29,7 @@ var (
wcclient nodepb.NodeServiceClient
)
func Install(accesskey string, password string, server string, group string, noauto bool, accesstoken string) error {
func Install(accesskey string, password string, server string, group string, noauto bool, accesstoken string, inputname string) error {
tserver := ""
@@ -189,6 +189,9 @@ func Install(accesskey string, password string, server string, group string, noa
if nodecfg.Name != "" {
name = nodecfg.Name
}
if inputname != "" && inputname != "noname" {
name = inputname
}
fmt.Println(" Name: " + name)