@ -9,6 +9,9 @@ func Remove() {
// TODO non-red
ExitFail("Hostname argument required: dsnet remove <hostname>")
}
ConfirmOrAbort("Do you really want to remove %s?", os.Args[2])
conf := MustLoadDsnetConfig()
hostname := os.Args[2]
conf.MustRemovePeer(hostname)
The note is not visible to the blocked user.