scripts moved to makefile, tcp/udp connections can now close gracefully, but udp is still failing testing with palworld server

This commit is contained in:
yusing
2024-03-04 19:09:36 +08:00
parent c94a13d273
commit a5c53a4f4f
16 changed files with 649 additions and 327 deletions

View File

@@ -1,8 +0,0 @@
#!/bin/sh
mkdir -p bin
CGO_ENABLED=0 GOOS=linux go build -o bin/go-proxy src/go-proxy/*.go || exit 1
if [ "$1" = "up" ]; then
docker compose up -d --build app && \
docker compose logs -f
fi

View File

@@ -1,2 +0,0 @@
#!/bin/sh
go get -d -u ./src/go-proxy

View File

@@ -1,10 +0,0 @@
#!/bin/sh
docker run -it --tty --rm \
-p 9999:9999/udp \
--label proxy.test-udp.scheme=udp \
--label proxy.test-udp.port=20003:9999 \
--network data_default \
--name test-udp \
debian:stable-slim \
/bin/bash -c \
"apt update && apt install -y netcat-openbsd && echo 'nc -u -l 9999' >> ~/.bashrc && bash"