Add udp port forward

Add udp port forward, which can be useful for windows rdp udp acceleration.
This commit is contained in:
Deihim Poornader 2022-08-07 11:49:07 +04:30 committed by GitHub
parent 52f298ba8b
commit 41322e41e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -810,6 +810,7 @@ function vm_boot() {
GUEST_PORT=$(echo "${FORWARD}" | cut -d':' -f2)
echo " - ${HOST_PORT} => ${GUEST_PORT}"
NET="${NET},hostfwd=tcp::${HOST_PORT}-:${GUEST_PORT}"
NET="${NET},hostfwd=udp::${HOST_PORT}-:${GUEST_PORT}"
done
fi