From f52fe6aa74131a4273347c0d1fcad92891d86920 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Sat, 21 Sep 2024 19:46:39 +0800 Subject: [PATCH] fix: tun.device not shown in restful api --- listener/sing_tun/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/listener/sing_tun/server.go b/listener/sing_tun/server.go index a135a3019..c2c668b34 100644 --- a/listener/sing_tun/server.go +++ b/listener/sing_tun/server.go @@ -138,6 +138,7 @@ func New(options LC.Tun, tunnel C.Tunnel, additions ...inbound.Addition) (l *Lis tunName := options.Device if options.FileDescriptor == 0 && (tunName == "" || !checkTunName(tunName)) { tunName = CalculateInterfaceName(InterfaceName) + options.Device = tunName } routeAddress := options.RouteAddress if len(options.Inet4RouteAddress) > 0 {