mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Important change to custom MTU handling (mainly to fix issue #1357)
- When NOT providing a custom MTU, 1420 is used for both clients and server. Using such value for clients can break WireGuard connections on some networks, so iOS and Android clients have logic in place to select a proper MTU value when not specified. Now "pivpnMTU" with only be used to set the MTU value for the PiVPN installation but not for profile creation.
This commit is contained in:
parent
027f257931
commit
50798ccd42
1 changed files with 0 additions and 4 deletions
|
@ -103,10 +103,6 @@ echo "[Interface]
|
||||||
PrivateKey = $(cat "keys/${CLIENT_NAME}_priv")
|
PrivateKey = $(cat "keys/${CLIENT_NAME}_priv")
|
||||||
Address = ${NET_REDUCED}.${COUNT}/${subnetClass}" > "configs/${CLIENT_NAME}.conf"
|
Address = ${NET_REDUCED}.${COUNT}/${subnetClass}" > "configs/${CLIENT_NAME}.conf"
|
||||||
|
|
||||||
if [ -n "${pivpnMTU}" ]; then
|
|
||||||
echo "MTU = ${pivpnMTU}" >> "configs/${CLIENT_NAME}.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -n "DNS = ${pivpnDNS1}" >> "configs/${CLIENT_NAME}.conf"
|
echo -n "DNS = ${pivpnDNS1}" >> "configs/${CLIENT_NAME}.conf"
|
||||||
if [ -n "${pivpnDNS2}" ]; then
|
if [ -n "${pivpnDNS2}" ]; then
|
||||||
echo ", ${pivpnDNS2}" >> "configs/${CLIENT_NAME}.conf"
|
echo ", ${pivpnDNS2}" >> "configs/${CLIENT_NAME}.conf"
|
||||||
|
|
Loading…
Reference in a new issue