Updated noRedirect
This commit is contained in:
		@@ -246,7 +246,7 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col
 | 
				
			|||||||
				log(prefix, "\x1B[1m" + req.getMethod() + " " + req.getPath() + "\x1B[0m");
 | 
									log(prefix, "\x1B[1m" + req.getMethod() + " " + req.getPath() + "\x1B[0m");
 | 
				
			||||||
				log_to_file(prefix, "\x1B[1m" + req.getMethod() + " " + req.getPath() + "\x1B[0m", host);
 | 
									log_to_file(prefix, "\x1B[1m" + req.getMethod() + " " + req.getPath() + "\x1B[0m", host);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				bool noRedirect = req.getPath().find("/.well-known/acme-challenge/") == 0 || (req.getPath().find("/files/") == 0);
 | 
									bool noRedirect = req.getPath().find("/.well-known/") == 0 || (req.getPath().find("/files/") == 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				bool redir = true;
 | 
									bool redir = true;
 | 
				
			||||||
				if (!noRedirect) {
 | 
									if (!noRedirect) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user