Skip to content

Commit

Permalink
fix: tun.device not shown in restful api
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Sep 21, 2024
1 parent a08aa10 commit f52fe6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions listener/sing_tun/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f52fe6a

Please sign in to comment.