Update readme

This commit is contained in:
KusakabeSi
2021-09-29 00:23:59 +00:00
parent 96682579f8
commit b6cb1db5d8
2 changed files with 305 additions and 11 deletions

View File

@ -421,6 +421,9 @@ func peerdel(w http.ResponseWriter, r *http.Request) { //Waiting for test
http_sconfig.Peers = peers_new
configbytes, _ := yaml.Marshal(http_sconfig)
ioutil.WriteFile(http_sconfig_path, configbytes, 0644)
w.WriteHeader(http.StatusOK)
w.Write([]byte(toDelete.ToString() + " deleted."))
return
}
func HttpServer(http_port int, apiprefix string) {