mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 23:33:51 +01:00
panel apperance, added experimental tcp/udp proxy support, slight performance improvement for http proxy
This commit is contained in:
8
scripts/build.sh
Executable file
8
scripts/build.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/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
|
||||
10
scripts/udp-test-container.sh
Normal file
10
scripts/udp-test-container.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user