mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-11 18:54:12 +00:00
actually accept mtu=1500
This commit is contained in:
parent
21808e708d
commit
7fe021cba9
@ -460,7 +460,7 @@ tun_setmtu(const unsigned mtu)
|
|||||||
#ifndef WINDOWS32
|
#ifndef WINDOWS32
|
||||||
char cmdline[512];
|
char cmdline[512];
|
||||||
|
|
||||||
if (mtu > 200 && mtu < 1500) {
|
if (mtu > 200 && mtu <= 1500) {
|
||||||
snprintf(cmdline, sizeof(cmdline),
|
snprintf(cmdline, sizeof(cmdline),
|
||||||
"/sbin/ifconfig %s mtu %u",
|
"/sbin/ifconfig %s mtu %u",
|
||||||
if_name,
|
if_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user