From 2523db9985506854c12912b3fc45e717de7023f8 Mon Sep 17 00:00:00 2001 From: arimitx Date: Wed, 21 Aug 2024 13:27:01 +0800 Subject: [PATCH] feat(tun): Add tun_gso config option --- root/etc/config/homeproxy | 1 + root/etc/homeproxy/scripts/generate_client.uc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/root/etc/config/homeproxy b/root/etc/config/homeproxy index 838c9d57..d8438f0a 100644 --- a/root/etc/config/homeproxy +++ b/root/etc/config/homeproxy @@ -11,6 +11,7 @@ config homeproxy 'infra' option tun_addr4 '172.19.0.1/30' option tun_addr6 'fdfe:dcba:9876::1/126' option tun_mtu '9000' + option tun_gso '0' option table_mark '100' option self_mark '100' option tproxy_mark '101' diff --git a/root/etc/homeproxy/scripts/generate_client.uc b/root/etc/homeproxy/scripts/generate_client.uc index 3d7aebc2..f51fff61 100755 --- a/root/etc/homeproxy/scripts/generate_client.uc +++ b/root/etc/homeproxy/scripts/generate_client.uc @@ -106,7 +106,7 @@ if (match(proxy_mode), /tun/) { tun_addr4 = uci.get(uciconfig, uciinfra, 'tun_addr4') || '172.19.0.1/30'; tun_addr6 = uci.get(uciconfig, uciinfra, 'tun_addr6') || 'fdfe:dcba:9876::1/126'; tun_mtu = uci.get(uciconfig, uciinfra, 'tun_mtu') || '9000'; - tun_gso = '0'; + tun_gso = uci.get(uciconfig, uciinfra, 'tun_gso') || '0'; tcpip_stack = 'system'; if (routing_mode === 'custom') { tun_gso = uci.get(uciconfig, uciroutingsetting, 'tun_gso') || '0';