2025-04-03 16:23:58
Some checks failed
gofmt / Run gofmt (push) Has been cancelled
Build and test / Build and test on Ubuntu (push) Has been cancelled

This commit is contained in:
Ho Sy Tan 2025-04-03 16:23:58 +07:00
parent 0db9b24dfe
commit 9084d268f6
7 changed files with 17 additions and 17 deletions

View file

@ -16,8 +16,8 @@ import (
"sync/atomic"
"time"
"git.ct129.com/VPN/cmapi/keys"
"git.ct129.com/VPN/cmapi/message"
"git.ct129.com/cmesh/cmapi/keys"
"git.ct129.com/cmesh/cmapi/message"
"github.com/sirupsen/logrus"
)

View file

@ -17,12 +17,12 @@ import (
"testing"
"time"
"git.ct129.com/VPN/cmapi/cmapitest"
"git.ct129.com/VPN/cmapi/internal/testutil"
"git.ct129.com/VPN/cmapi/keys"
"git.ct129.com/VPN/cmapi/message"
"git.ct129.com/cmesh/cmapi/cmapitest"
"git.ct129.com/cmesh/cmapi/internal/testutil"
"git.ct129.com/cmesh/cmapi/keys"
"git.ct129.com/cmesh/cmapi/message"
"github.com/sirupsen/logrus"
"git.ct129.com/VPN/cmesh/cert"
"git.ct129.com/cmesh/cmesh/cert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v2"

View file

@ -19,9 +19,9 @@ import (
"net/http/httptest"
"time"
"git.ct129.com/VPN/cmapi/keys"
"git.ct129.com/VPN/cmapi/message"
"git.ct129.com/VPN/cmesh/cert"
"git.ct129.com/cmesh/cmapi/keys"
"git.ct129.com/cmesh/cmapi/message"
"git.ct129.com/cmesh/cmesh/cert"
"gopkg.in/yaml.v2"
)

View file

@ -7,7 +7,7 @@ import (
"os"
"time"
"git.ct129.com/VPN/cmapi"
"git.ct129.com/cmesh/cmapi"
"github.com/sirupsen/logrus"
)

6
go.mod
View file

@ -1,11 +1,11 @@
module git.ct129.com/VPN/cmapi
module git.ct129.com/cmesh/cmapi
go 1.22.0
replace git.ct129.com/VPN/cmesh => ../cmesh
replace git.ct129.com/cmesh/cmesh => ../cmesh
require (
git.ct129.com/VPN/cmesh v1.0.0
git.ct129.com/cmesh/cmesh v1.0.0
github.com/sirupsen/logrus v1.9.2
github.com/stretchr/testify v1.8.2
golang.org/x/crypto v0.9.0

View file

@ -9,7 +9,7 @@ import (
"fmt"
"io"
"git.ct129.com/VPN/cmesh/cert"
"git.ct129.com/cmesh/cmesh/cert"
"golang.org/x/crypto/curve25519"
)

View file

@ -5,8 +5,8 @@ import (
"encoding/json"
"time"
"git.ct129.com/VPN/cmapi/keys"
"git.ct129.com/VPN/cmapi/message"
"git.ct129.com/cmesh/cmapi/keys"
"git.ct129.com/cmesh/cmapi/message"
)
func SignRequestV1(reqType string, value []byte, hostID string, counter uint, privkey keys.PrivateKey) ([]byte, error) {