mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-25 06:36:29 +09:00
Ability to clear nickname
This commit is contained in:
1 parent
663e8384a3
commit
9901d6b2e7
1 file changed
+5
-1
@@ -235,9 +235,13 @@ var renameNodeCmd = &cobra.Command{
|
||||
defer cancel()
|
||||
defer conn.Close()
|
||||
|
||||
newName := ""
|
||||
if len(args) > 0 {
|
||||
newName = args[0]
|
||||
}
|
||||
request := &v1.RenameMachineRequest{
|
||||
MachineId: identifier,
|
||||
NewName: args[0],
|
||||
NewName: newName,
|
||||
}
|
||||
|
||||
response, err := client.RenameMachine(ctx, request)
|
||||
|
||||
Reference in new issue
Block a user