style: smell fix

This commit is contained in:
SunBK201 2025-12-12 23:20:02 +08:00
parent d9f0e1fa46
commit 97263044f0
9 changed files with 12 additions and 12 deletions

View File

@ -72,7 +72,7 @@ func (s *Server) iptCleanup() error {
return nil
}
func (s *Server) IptWatch() {
func (s *Server) iptWatch() {
go func() {
ticker := time.NewTicker(10 * time.Minute)
defer ticker.Stop()

View File

@ -55,10 +55,10 @@ func New(cfg *config.Config, rw *rewrite.Rewriter, rc *statistics.Recorder) *Ser
},
NftSetup: s.nftSetup,
NftCleanup: s.nftCleanup,
NftWatch: s.NftWatch,
NftWatch: s.nftWatch,
IptSetup: s.iptSetup,
IptCleanup: s.iptCleanup,
IptWatch: s.IptWatch,
IptWatch: s.iptWatch,
}
return s
}

View File

@ -47,7 +47,7 @@ func (s *Server) nftCleanup() error {
return nil
}
func (s *Server) NftWatch() {
func (s *Server) nftWatch() {
go func() {
_ = s.NftAddSkipDomains()

View File

@ -65,7 +65,7 @@ func (s *Server) iptCleanup() error {
return nil
}
func (s *Server) IptWatch() {
func (s *Server) iptWatch() {
go func() {
ticker := time.NewTicker(10 * time.Minute)
defer ticker.Stop()

View File

@ -47,7 +47,7 @@ func (s *Server) nftCleanup() error {
return nil
}
func (s *Server) NftWatch() {
func (s *Server) nftWatch() {
go func() {
_ = s.NftAddSkipDomains()

View File

@ -51,10 +51,10 @@ func New(cfg *config.Config, rw *rewrite.Rewriter, rc *statistics.Recorder) *Ser
},
NftSetup: s.nftSetup,
NftCleanup: s.nftCleanup,
NftWatch: s.NftWatch,
NftWatch: s.nftWatch,
IptSetup: s.iptSetup,
IptCleanup: s.iptCleanup,
IptWatch: s.IptWatch,
IptWatch: s.iptWatch,
}
return s
}

View File

@ -117,7 +117,7 @@ func (s *Server) iptCleanup() error {
return nil
}
func (s *Server) IptWatch() {
func (s *Server) iptWatch() {
go func() {
ticker := time.NewTicker(10 * time.Minute)
defer ticker.Stop()

View File

@ -54,7 +54,7 @@ func (s *Server) nftCleanup() error {
return nil
}
func (s *Server) NftWatch() {
func (s *Server) nftWatch() {
go func() {
_ = s.NftAddSkipDomains()

View File

@ -63,10 +63,10 @@ func New(cfg *config.Config, rw *rewrite.Rewriter, rc *statistics.Recorder) *Ser
},
NftSetup: s.nftSetup,
NftCleanup: s.nftCleanup,
NftWatch: s.NftWatch,
NftWatch: s.nftWatch,
IptSetup: s.iptSetup,
IptCleanup: s.iptCleanup,
IptWatch: s.IptWatch,
IptWatch: s.iptWatch,
}
return s
}