From 094ea9faaae35b452ca3bd30b4b519da95ef984d Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 20 Apr 2026 18:14:32 +0200 Subject: tun: dual MTU, gateway, DNS, auto routing Change TunSettings to support separate IPv4/IPv6 MTU values and add gateway, DNS, autoSystemRoutingTable and autoOutboundsInterface properties. Introduces _normalizeMtu to accept legacy single-value or array forms and provide sensible defaults. Update fromJson/toJson to handle new fields and preserve backward compatibility. Update tun form UI to expose MTU IPv4/IPv6 inputs, Gateway/DNS tag selects, Auto Routing Table and Auto Outbounds input. --- web/html/form/protocol/tun.html | 45 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'web/html/form/protocol/tun.html') diff --git a/web/html/form/protocol/tun.html b/web/html/form/protocol/tun.html index 7972c742..236f65cf 100644 --- a/web/html/form/protocol/tun.html +++ b/web/html/form/protocol/tun.html @@ -22,17 +22,43 @@ - MTU + MTU IPv4 + + + + + + + + +