mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-10 07:05:28 +08:00
correct connect trigger endpoint
This commit is contained in:
parent
e97566f069
commit
ae6151443e
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
"crypto/rand"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"math"
|
||||
"net/http"
|
||||
|
||||
|
@ -200,7 +200,7 @@ func validateLicenseKey(encryptedData []byte, publicKey *[32]byte) ([]byte, erro
|
|||
return nil, fmt.Errorf("could not validate license")
|
||||
} // if you received a 200 cache the response locally
|
||||
|
||||
body, err = ioutil.ReadAll(validateResponse.Body)
|
||||
body, err = io.Copy(validateResponse.Body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue