mirror of
				https://github.com/brianshea2/meshmap.net.git
				synced 2025-03-05 21:00:01 -08:00 
			
		
		
		
	filter invalid topics
This commit is contained in:
		
							parent
							
								
									1b62110914
								
							
						
					
					
						commit
						7a8a2ce030
					
				|  | @ -237,7 +237,7 @@ func main() { | |||
| 			"msh/+/+/+/+/2/map/", | ||||
| 			"msh/+/+/+/+/2/e/+/+", | ||||
| 		}, | ||||
| 		TopicRegex: regexp.MustCompile(`/2/e/[^/]+/![0-9a-f]+$|/2/map/$`), | ||||
| 		TopicRegex: regexp.MustCompile(`^msh(?:/[^/]+)+/2/(?:e/[^/]+/![0-9a-f]+|map/)$`), | ||||
| 		Accept: func(from uint32) bool { | ||||
| 			_, found := blocked[from] | ||||
| 			return !found | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue