mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	
		
			
	
	
		
			23 lines
		
	
	
		
			499 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			499 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
							 | 
						||
| 
								 | 
							
								//go:build !linux
							 | 
						||
| 
								 | 
							
								// +build !linux
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package firewalls
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/ddosconfigs"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var SharedDDoSProtectionManager = NewDDoSProtectionManager()
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type DDoSProtectionManager struct {
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func NewDDoSProtectionManager() *DDoSProtectionManager {
							 | 
						||
| 
								 | 
							
									return &DDoSProtectionManager{}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (this *DDoSProtectionManager) Apply(config *ddosconfigs.ProtectionConfig) error {
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 |