Feat: support set tun file-descriptor in config file

Co-authored-by: DuFoxit <DuFoxit@users.noreply.github.com>
This commit is contained in:
wwqgtxx
2023-03-15 23:43:58 +08:00
parent 520cc807d6
commit 998d407d44
6 changed files with 12 additions and 1 deletions

View File

@ -821,7 +821,8 @@ func hasTunConfigChange(tunConf *LC.Tun) bool {
LastTunConf.MTU != tunConf.MTU ||
LastTunConf.StrictRoute != tunConf.StrictRoute ||
LastTunConf.EndpointIndependentNat != tunConf.EndpointIndependentNat ||
LastTunConf.UDPTimeout != tunConf.UDPTimeout {
LastTunConf.UDPTimeout != tunConf.UDPTimeout ||
LastTunConf.FileDescriptor != tunConf.FileDescriptor {
return true
}