mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
fix: skip netlink helper setup when no modification options are enabled
This commit is contained in:
parent
3e72305ac2
commit
d9f0e1fa46
@ -41,6 +41,10 @@ func New(cfg *config.Config) *Server {
|
||||
}
|
||||
|
||||
func (s *Server) Start() (err error) {
|
||||
if !(s.cfg.SetTTL || s.cfg.DelTCPTimestamp || s.cfg.SetTCPInitialWindow || s.cfg.SetIPID) {
|
||||
slog.Info("No packet modification options enabled, skipping netlink helper setup")
|
||||
return nil
|
||||
}
|
||||
err = s.Firewall.Setup(s.cfg)
|
||||
if err != nil {
|
||||
slog.Error("s.Firewall.Setup", slog.Any("error", err))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user