mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 21:33:33 +02:00
actually accept mtu=1500
This commit is contained in:
parent
84f5965825
commit
7b30a2e504
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ tun_setmtu(const unsigned mtu)
|
|||
#ifndef WINDOWS32
|
||||
char cmdline[512];
|
||||
|
||||
if (mtu > 200 && mtu < 1500) {
|
||||
if (mtu > 200 && mtu <= 1500) {
|
||||
snprintf(cmdline, sizeof(cmdline),
|
||||
"/sbin/ifconfig %s mtu %u",
|
||||
if_name,
|
||||
|
|
Loading…
Reference in a new issue