mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 21:45:34 +00:00
Detect IPv6 in udp_proxy_wrapper.sh grepping for server_addr=::1
This commit is contained in:
parent
22829e9860
commit
a677cdd459
|
@ -35,8 +35,10 @@ cleanup() {
|
||||||
|
|
||||||
trap cleanup INT TERM HUP
|
trap cleanup INT TERM HUP
|
||||||
|
|
||||||
DTLS_ENABLED=$(echo "$SERVER_PARAMS" | grep -v "::1" | grep "dtls=1")
|
DTLS_ENABLED=$(echo " $SERVER_PARAMS" | grep " dtls=1")
|
||||||
if [ -z "$DTLS_ENABLED" ]; then
|
IPV6_IN_USE=$(echo " $SERVER_PARAMS" | grep " server_addr=::1" )
|
||||||
|
|
||||||
|
if [ -z "$DTLS_ENABLED" ] || [ -n "$IPV6_IN_USE" ]; then
|
||||||
echo " * Couldn't find DTLS enabling, or IPv6 is in use - immediate fallback to server application..."
|
echo " * Couldn't find DTLS enabling, or IPv6 is in use - immediate fallback to server application..."
|
||||||
if [ $VERBOSE -gt 0 ]; then
|
if [ $VERBOSE -gt 0 ]; then
|
||||||
echo "[ $SRV_BIN $SERVER_PARAMS ]"
|
echo "[ $SRV_BIN $SERVER_PARAMS ]"
|
||||||
|
|
Loading…
Reference in a new issue