Fix UDP protocol command typo in socat_tools.sh

- Changed UDP4 to UDP in protocol option 7 for correct IPv4 forwarding
 - Maintained existing functionality while fixing socat command syntax
This commit is contained in:
CN-JS-HuiBai
2026-02-03 16:12:28 +08:00
parent bd213c1e79
commit c114a10f5f

View File

@@ -125,7 +125,7 @@ create_service() {
;; ;;
7) 7)
PROTO="udp4to6" PROTO="udp4to6"
SOCAT_CMD="UDP6-LISTEN:${LOCAL_PORT},reuseaddr,fork UDP4:${TARGET_IP}:${TARGET_PORT}" SOCAT_CMD="UDP6-LISTEN:${LOCAL_PORT},reuseaddr,fork UDP:${TARGET_IP}:${TARGET_PORT}"
;; ;;
8) 8)
PROTO="udp6to4" PROTO="udp6to4"