Add MTU config setting

This commit is contained in:
2022-12-10 10:31:26 +01:00
parent 0957eda443
commit 1d945f7ffb
3 changed files with 29 additions and 3 deletions

View File

@ -39,6 +39,13 @@ cat <<EOF > $DEVICE-client_$CLIENT_ID.conf
Address = $NETWORK.$(($CLIENT_ID+10))/24
ListenPort = $SERVER_PORT
PrivateKey = ${CLIENT_SEC_KEY}
EOF
if [ $MTU ]; then
echo "MTU = $MTU" >> $DEVICE-client_$CLIENT_ID.conf
fi
cat <<EOF >> $DEVICE-client_$CLIENT_ID.conf
[Peer]
PublicKey = $SERVER_PUB_KEY