fix: add MTU size fix for Proxmox/Docker network compatibility
Update README Actions Table / update-readme (push) Successful in 4s
Update README Actions Table / update-readme (push) Successful in 4s
This commit is contained in:
@@ -17,6 +17,19 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fix MTU size for Proxmox/Docker network compatibility
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
DEFAULT_INTERFACE=$(ip route show | grep default | awk '{print $5}')
|
||||||
|
if [ -n "$DEFAULT_INTERFACE" ]; then
|
||||||
|
echo "Setting MTU of $DEFAULT_INTERFACE to 1400..."
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
|
ip link set dev "$DEFAULT_INTERFACE" mtu 1400 || true
|
||||||
|
else
|
||||||
|
sudo ip link set dev "$DEFAULT_INTERFACE" mtu 1400 || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user