Minor fixes

This commit is contained in:
世界 2025-07-10 21:41:46 +08:00
parent 4c81c8a62a
commit 7812930a48
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 10 additions and 7 deletions

View file

@ -174,7 +174,7 @@ func (s *System) tunLoop() {
return
}
}
if darwinTUN, isDarwinTUN := s.tun.(DarwinTUN); isDarwinTUN {
if darwinTUN, isDarwinTUN := s.tun.(DarwinTUN); isDarwinTUN && s.mtu < 49152 {
s.batchLoopDarwin(darwinTUN)
return
}