dnk: add debug for server interface

This commit is contained in:
Daniil Firsov 2022-12-13 21:44:19 +03:00
parent fff00fef58
commit b6b0bc05c3

View File

@ -109,6 +109,13 @@ function init {
exit 1
fi
if [ -z "$SERVER_INTERFACE" ]; then
echo "ERROR: Can't determine server interface" >&2
echo "DEBUG: 'ip route':"
ip route
exit 1
fi
echo "Interface: $SERVER_INTERFACE"
mkdir -p "keys/${SERVER_NAME}"