Skip to content

FDUTCH/df-protection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protection for Dragonfly

Is the utility library utility for Dragonfly that improves stability, protects against malicious packets, and adds several useful utilities.

  • Recovery
  • Antilag protection
  • PPS Limit
  • Protection against malicious packets

Example

// enable antilag protection
monitoring.Config.PreventLags = true

monitoring.Config.PerformanceReporter = func(s *session.Session, c session.Controllable) {
	// your actions against server lag
}

// customize your Recovery 
monitoring.Config.Recovery = func(s *session.Session, c session.Controllable, err error) {
	// printing panic message
	fmt.Println(util.PanicMessage(err))
}

for p := range srv.Accept() {
    monitoring.Enable(p)
}

About

utility library to improve Dragonfly stability & security

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages