update für SH

This commit is contained in:
2025-09-18 11:40:57 +02:00
parent 4aa84655e0
commit 53a5cb7895
2 changed files with 3 additions and 4 deletions

View File

@@ -1,2 +1 @@
# duidreader

View File

@@ -277,8 +277,8 @@ func main() {
gh = append(gh, bh.IAID)
}
//host, _ := os.Hostname()
host := "PC1020"
host, _ := os.Hostname()
//host := "PC1020"
p := payload{
Hostname: host,
DUIDs: make([]string, len(raw)),
@@ -292,7 +292,7 @@ func main() {
body, _ := json.Marshal(p)
// --- HTTP senden ---
url := "http://localhost:8080/register" // <-- ggf. anpassen
url := "https://client-ipv6.stadt-hilden.de/register" // <-- ggf. anpassen
req, _ := http.NewRequest(http.MethodPost, url, bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")