mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	实现IP黑白名单、国家|地区封禁、省份封禁
This commit is contained in:
		@@ -38,6 +38,7 @@ function build() {
 | 
			
		||||
	cp $ROOT/configs/api.template.yaml $DIST/configs
 | 
			
		||||
	cp -R $ROOT/www $DIST/
 | 
			
		||||
	cp -R $ROOT/pages $DIST/
 | 
			
		||||
	cp -R $ROOT/resources $DIST/
 | 
			
		||||
 | 
			
		||||
	echo "building ..."
 | 
			
		||||
	env GOOS=${OS} GOARCH=${ARCH} go build -o $DIST/bin/${NAME} -ldflags="-s -w" $ROOT/../cmd/edge-node/main.go
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								build/configs/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								build/configs/.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,3 +1,4 @@
 | 
			
		||||
node.json
 | 
			
		||||
api.yaml
 | 
			
		||||
cluster.yaml
 | 
			
		||||
cluster.yaml
 | 
			
		||||
*.cache
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								build/resources/ipdata/ip2region/ip2region.db
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								build/resources/ipdata/ip2region/ip2region.db
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user