增加build

This commit is contained in:
MQjehovah 2024-01-10 09:27:19 +08:00
parent 8b73a9d0c0
commit 8abb8c1f2f
4 changed files with 11 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.vscode/
build/

4
client/build.cmd Normal file
View File

@ -0,0 +1,4 @@
set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
go build -o build/goproxy_client

View File

@ -198,7 +198,7 @@ func (dev *Device) readLoop() {
return return
} }
remoteConn, err := createTcpConn("localhost:10001") remoteConn, err := createTcpConn("192.168.21.146:10001")
if err != nil { if err != nil {
fmt.Println("Create remoteAddr Error! " + err.Error()) fmt.Println("Create remoteAddr Error! " + err.Error())
return return

4
server/build.cmd Normal file
View File

@ -0,0 +1,4 @@
set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
go build -o build/goproxy_server