1
0
mirror of https://github.com/fumiama/aes-rsa-tcp-demo.git synced 2026-06-05 01:20:24 +08:00

feat: add module name

This commit is contained in:
源文雨
2025-03-24 23:42:42 +09:00
parent 7b8211af9d
commit 565dc528eb
3 changed files with 5 additions and 7 deletions

View File

@@ -10,9 +10,10 @@ import (
"fmt"
"net"
"net/netip"
"socket/utils"
"time"
"github.com/fumiama/aes-rsa-tcp-demo/utils"
base14 "github.com/fumiama/go-base16384"
)
@@ -105,10 +106,6 @@ func main() {
fmt.Println("Read packet from server", conn.RemoteAddr(), "error:", err)
return
}
if err != nil {
fmt.Println("Receive from server", conn.RemoteAddr(), "error:", err)
continue
}
data, err = utils.RSAPublicKeyDecrypt(rsapubk, packet.Dat)
if err != nil {
fmt.Println("RSAPublicKeyDecrypt from server", conn.RemoteAddr(), "error:", err)

2
go.mod
View File

@@ -1,4 +1,4 @@
module socket
module github.com/fumiama/aes-rsa-tcp-demo
go 1.17

View File

@@ -13,10 +13,11 @@ import (
"net"
"net/netip"
"os"
"socket/utils"
"strconv"
"sync/atomic"
"github.com/fumiama/aes-rsa-tcp-demo/utils"
base14 "github.com/fumiama/go-base16384"
)