update für SH
This commit is contained in:
6
main.go
6
main.go
@@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user